{"id":17866198,"url":"https://github.com/xt0rted/setup-dotnet","last_synced_at":"2026-03-19T02:14:59.325Z","repository":{"id":41201255,"uuid":"480878184","full_name":"xt0rted/setup-dotnet","owner":"xt0rted","description":"A wrapper around the official actions/setup-dotnet action with extra features","archived":false,"fork":false,"pushed_at":"2022-10-22T21:08:04.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-16T21:42:43.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/xt0rted.png","metadata":{"funding":{"github":"xt0rted","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-12T15:57:13.000Z","updated_at":"2025-09-29T16:47:47.000Z","dependencies_parsed_at":"2023-01-05T05:03:08.105Z","dependency_job_id":null,"html_url":"https://github.com/xt0rted/setup-dotnet","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"6f04e7f8ca9ff2faf76540fe2e3ebc595ca38b6b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/xt0rted/setup-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fsetup-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fsetup-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fsetup-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fsetup-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xt0rted","download_url":"https://codeload.github.com/xt0rted/setup-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fsetup-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30685460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-19T00:52:14.022Z","status":"online","status_checked_at":"2026-03-19T02:00:06.886Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-28T09:28:56.915Z","updated_at":"2026-03-19T02:14:59.230Z","avatar_url":"https://github.com/xt0rted.png","language":null,"funding_links":["https://github.com/sponsors/xt0rted"],"categories":[],"sub_categories":[],"readme":"# setup-dotnet\n\nA wrapper around the official [actions/setup-dotnet](https://github.com/actions/setup-dotnet) action with extra features that aren't yet implemented.\n\n1. Sets `DOTNET_INSTALL_DIR` based on the OS so existing sdks are used when available (https://github.com/actions/setup-dotnet/issues/284, https://github.com/actions/setup-dotnet/pull/208)\n2. Strips comments from the `global.json` before calling `actions/setup-dotnet` and then restores them (https://github.com/actions/setup-dotnet/pull/257)\n3. Sets `DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION` and `TERM` to force color output by default (https://github.com/actions/setup-dotnet/issues/288).\n\n## Usage\n\nBasic usage with SDK version from the `global.json`.\n\n```yml\n- name: Set up .NET\n  uses: xt0rted/setup-dotnet@v1.0.0\n```\n\nSpecifying a single SDK version to use.\n\n```yml\n- name: Set up .NET\n  uses: xt0rted/setup-dotnet@v1.0.0\n  with:\n    dotnet-version: 6.0.201\n```\n\nSpecifying multiple SDK versions to use.\n\n```yml\n- name: Set up .NET\n  uses: xt0rted/setup-dotnet@v1.0.0\n  with:\n    dotnet-version: |\n      3.1.417\n      5.0.406\n      6.0.201\n```\n\nSpecifying a custom source and auth token.\n\n```yml\n- name: Set up .NET\n  uses: xt0rted/setup-dotnet@v1.0.0\n  with:\n    source-url: https://nuget.pkg.github.com/xt0rted/index.json\n    nuget_auth_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Options\n\nName | Default value | Description\n-- | -- | --\n`colored-output` | `true` | Sets the required environment variables to force color output from dotnet.\n`nuget_auth_token` | `\"\"` | Optional authentication token used with `source-url`.\n`strip-comments-from-global-json` | `true` | Whether to strip comments from the `global.json` file.\n\n\u003e ℹ️ This action requires passing `nuget_auth_token` as an input not an environment variable.\n\nAll inputs supported by `actions/setup-dotnet` are supported and passed through to it.\nThe full list of supported inputs can be seen in the [action.yml](action.yml) file.\n\n## Known issues\n\n1. The step to strip comments from the `global.json` file uses [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) and requires Node.js 16 or newer to work. If you're using an older version of node and don't need this step to run you can disable it with the `strip-comments-from-global-json` setting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fsetup-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxt0rted%2Fsetup-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fsetup-dotnet/lists"}