{"id":14986063,"url":"https://github.com/zyactions/dotnet-setup","last_synced_at":"2026-01-05T01:16:42.626Z","repository":{"id":63765033,"uuid":"570131449","full_name":"zyactions/dotnet-setup","owner":"zyactions","description":"A GitHub Action to set up a specific version of the .NET SDK in a workflow run.","archived":false,"fork":false,"pushed_at":"2023-09-05T07:37:32.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T10:48:49.455Z","etag":null,"topics":["continuous-integration","dotnet","github-actions"],"latest_commit_sha":null,"homepage":"","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyactions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T12:10:21.000Z","updated_at":"2022-12-23T16:25:13.000Z","dependencies_parsed_at":"2024-09-25T00:31:04.052Z","dependency_job_id":null,"html_url":"https://github.com/zyactions/dotnet-setup","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"8f4b644ff5ff19bba913663df285b7b7278bb724"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyactions","download_url":"https://codeload.github.com/zyactions/dotnet-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244826602,"owners_count":20516788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-integration","dotnet","github-actions"],"created_at":"2024-09-24T14:12:15.823Z","updated_at":"2026-01-05T01:16:42.577Z","avatar_url":"https://github.com/zyactions.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Setup\n\n![License: MIT][shield-license-mit]\n[![CI][shield-ci]][workflow-ci]\n[![Ubuntu][shield-platform-ubuntu]][job-runs-on]\n[![macOS][shield-platform-macos]][job-runs-on]\n[![Windows][shield-platform-windows]][job-runs-on]\n\nA GitHub Action to set up a specific version of the .NET SDK in a workflow run.\n\n## Features\n\n- Sets up a [.NET CLI][dotnet-sdk] environment for use in GitHub Actions\n- Registers a [problem matcher][problem-matchers] for error output\n- Configures some .NET CLI related environment variables for best performance\n- Supports all platforms (Linux, macOS, Windows)\n\n\u003e **Note**\n\u003e\n\u003e This action mainly provides a wrapper around the official [actions/setup-dotnet][actions-setup-dotnet] action with a few additional quality-of-life improvements.\n\n## Usage\n\n### Set up a specific SDK version\n\n```yaml\nsteps:\n  - name: .NET Setup\n    uses: zyactions/dotnet-setup@v1\n    with:\n      dotnet-version: '7.0.0'\n```\n\n### Set up multiple SDK versions\n\n```yaml\nsteps:\n  - name: .NET Setup\n    uses: zyactions/dotnet-setup@v1\n    with:\n      dotnet-version: |\n        7.0.x\n        6.0.x\n```\n\n### Set up SDK version from 'global.json'\n\n```yaml\nsteps:\n  - name: .NET Setup\n    uses: zyactions/dotnet-setup@v1\n    with:\n      global-json-file: ./global.json\n```\n\n## Inputs\n\n### `dotnet-version`\n\nAllows to specify optional SDK version(s) to use. If not provided, will install `global.json` version when available.\n\nThe `dotnet-version` input supports following syntax:\n\n- `A.B.C` installs exact version of .NET SDK\n- `A.B` or `A.B.x` installs the latest patch version of .NET SDK on the given channel, including prerelease versions (`preview`, `rc`)\n- `A` or `A.x` installs the latest minor version of the specified major tag, including prerelease versions (`preview`, `rc`)\n\n\u003e **Note**\n\u003e\n\u003e In case multiple versions are installed, the latest .NET version will be used by default unless another version is specified in the `global.json` file.\n\u003e\n\u003e In case both `dotnet-version` and `global-json-file` inputs are used, versions from both inputs will be installed.\n\n### `dotnet-quality`\n\nThis input sets up the action to install the latest build of the specified quality in the channel.\n\nThe possible values of `dotnet-quality` are:\n\n- `daily`\n- `signed`\n- `validated`\n- `preview`\n- `ga`\n\n\u003e **Note**\n\u003e\n\u003e The `dotnet-quality` input can be used only with .NET SDK version in `A.B`, `A.B.x`, `A` and `A.x` formats where the major version is higher than `5`. In other cases, this input will be ignored.\n\n### `global-json-file`\n\nAllows to specify the location of the `global.json`, if it isn't located in the root of the repo.\n\n### `problem-matcher`\n\nWheather to use the .NET problem matcher. The default problem matcher is automatically registered by the wrapped [actions/setup-dotnet][actions-setup-dotnet] action. Setting `problem-matcher` to `false` will unregister it.\n\n## Outputs\n\n### `dotnet-version`\n\nThe `dotnet-version` output contains the .NET SDK version installed by the action. Have a look at the `dotnet-version` input to learn about precedence rules when specifying multiple versions and/or additionally using the `global.json` file.\n\n## Dependencies\n\nThis action does use the following official GitHub Actions dependencies:\n\n- [actions/setup-dotnet][actions-setup-dotnet]\n\n## Versioning\n\nVersions follow the [semantic versioning scheme][semver].\n\n## License\n\n.NET Setup Action is licensed under the MIT license.\n\n[actions-setup-dotnet]: https://github.com/actions/setup-dotnet\n[dotnet-sdk]: https://github.com/dotnet/sdk\n[job-runs-on]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on\n[problem-matchers]: https://github.com/actions/runner/blob/main/docs/adrs/0276-problem-matchers.md\n[semver]: https://semver.org\n[shield-license-mit]: https://img.shields.io/badge/License-MIT-blue.svg\n[shield-ci]: https://github.com/zyactions/dotnet-setup/actions/workflows/ci.yml/badge.svg\n[shield-platform-ubuntu]: https://img.shields.io/badge/Ubuntu-E95420?logo=ubuntu\\\u0026logoColor=white\n[shield-platform-macos]: https://img.shields.io/badge/macOS-53C633?logo=apple\\\u0026logoColor=white\n[shield-platform-windows]: https://img.shields.io/badge/Windows-0078D6?logo=windows\\\u0026logoColor=white\n[workflow-ci]: https://github.com/zyactions/dotnet-setup/actions/workflows/ci.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fdotnet-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyactions%2Fdotnet-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fdotnet-setup/lists"}