fast-actions/Setup .NET Fast
Download .NET SDK and Runtime with optimized performance
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| sdk-version | .NET SDK version(s) to install. Supports single version, comma-separated (10.x, 10.x.x, 9.0.0), or YAML array. Use keywords: "latest" (newest), "lts" (Long-Term Support), "sts" (Standard Term Support). Wildcards can be two-part (10.x = 10.x.x) or three-part (10.x.x). Preview versions are supported (e.g., 9.0.100-preview.7). Takes precedence over global.json. | no | — |
| runtime-version | .NET Runtime version(s) to install. Supports single version, comma-separated (8.0.0, 7.x, 7.x.x), or YAML array. Wildcards can be two-part (7.x = 7.x.x) or three-part (7.x.x). Use keywords: "latest", "lts", "sts". Preview versions are supported (e.g., 9.0.0-preview.7). | no | — |
| aspnetcore-version | ASP.NET Core Runtime version(s) to install. Supports single version, comma-separated (8.0.0, 7.x, 7.x.x), or YAML array. Wildcards can be two-part (7.x = 7.x.x) or three-part (7.x.x). Use keywords: "latest", "lts", "sts". Preview versions are supported (e.g., 9.0.0-preview.7). | no | — |
| global-json | Path to global.json file for SDK version resolution. Defaults to ./global.json in workspace root. Only affects SDK installations. | no | "" |
| cache | Enable unified caching of .NET installations. Speeds up subsequent runs when the same versions are requested. Set to false to disable. | no | true |
| allow-preview | Allow preview releases when using keywords (latest, lts, sts). When true, preview releases (support-phase: preview) will be included. When false (default), only stable releases are considered. | no | false |
Outputs
| name | description |
|---|---|
| dotnet-version | The installed .NET version |
| dotnet-path | Path to the installed .NET directory |
| cache-hit | Whether all requested versions were restored from the unified cache (true) or any were downloaded (false) |