Skip to content

Workload install should respect specific .NET sdk version with no rollforward #732

@thomasbach-dk

Description

@thomasbach-dk

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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions