Description:
We are using setup-dotnet with global-json-file set. In global.json we have set a specific .NET feature band version (e.g. 10.0.201) with no rollForward allowed. We are experiencing an issue with the workload feature of setup-dotnet, since it does not respect the specifically set dotnet feature band version.
Task version:
5.2.0
Platform:
Runner type:
Repro steps:
Add a global.json file:
{
"sdk": {
"version": "10.0.201",
"rollForward": "disable",
"allowPrerelease": false
}
}
Add a workflow using setup-sdk and the workloads feature:
- name: Install .NET SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: source/global.json
workloads: maui
Check the log output to confirm that workloads from dotnet feature band 10.0.202 are installed.
dotnet-install: .NET Core SDK with version '10.0.201' is already installed.
Refreshing workload manifests...
/Users/runner/.dotnet/dotnet workload update
Skipping NuGet package signature verification.
Updated advertising manifest [microsoft.net](http://microsoft.net/).workloads.
Installing workload version 10.0.202.
Expected behavior:
When a specific version of dotnet is applied in global.json and the global.json file is referred by setup-dotnet, it should respect that specific version for both installation of .NET SDK and workloads.
Actual behavior:
When a specific version of dotnet is applied in global.json and the global.json file is referred by setup-dotnet, that specific version respected for installation of .NET SDK but not the workloads.
Description:
We are using setup-dotnet with global-json-file set. In global.json we have set a specific .NET feature band version (e.g. 10.0.201) with no rollForward allowed. We are experiencing an issue with the workload feature of setup-dotnet, since it does not respect the specifically set dotnet feature band version.
Task version:
5.2.0
Platform:
Runner type:
Repro steps:
Add a global.json file:
Add a workflow using setup-sdk and the workloads feature:
Check the log output to confirm that workloads from dotnet feature band 10.0.202 are installed.
Expected behavior:
When a specific version of dotnet is applied in global.json and the global.json file is referred by setup-dotnet, it should respect that specific version for both installation of .NET SDK and workloads.
Actual behavior:
When a specific version of dotnet is applied in global.json and the global.json file is referred by setup-dotnet, that specific version respected for installation of .NET SDK but not the workloads.