Skip to content

Fix workload set install folder Fixes #46312#46351

Merged
Forgind merged 1 commit intodotnet:release/9.0.3xxfrom
Forgind:fix-workload-set-install-folder
Jan 29, 2025
Merged

Fix workload set install folder Fixes #46312#46351
Forgind merged 1 commit intodotnet:release/9.0.3xxfrom
Forgind:fix-workload-set-install-folder

Conversation

@Forgind
Copy link
Copy Markdown
Contributor

@Forgind Forgind commented Jan 28, 2025

Fixes #46312

https://github.com/dotnet/sdk/pull/46351When we installed a workload set, we'd use the current SDK's feature band as part of the path, but if it was a workload set for a different feature band (as, for instance, installed via dotnet workload update --version x), then it would assume that workload set was in the feature band folder for the current feature band. Since the resolver is fairly precise with its expectations, it rejects this workload set.

In my dogfood folder, the correct location is:
C:\GitHub\sdkRelease\artifacts\bin\redist\Debug\dotnet\sdk-manifests\9.0.100\workloadsets\9.0.101

But using a 9.0.2xx SDK, it would install to:
C:\GitHub\sdkRelease\artifacts\bin\redist\Debug\dotnet\sdk-manifests\9.0.200\workloadsets\9.0.101

This switches to using the feature band from the workload set itself, resolving the issue.

Note that this was a FileBasedInstaller-specific problem. I verified that MSI-based installs were not affected, which incidentally means this better aligns to their behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Workloads untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants