-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use install state in workload manifest provider #33643
Use install state in workload manifest provider #33643
Conversation
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs
Outdated
Show resolved
Hide resolved
Any chance you could isolate the changes that were just moving things from one class to another from the changes that had substantive code impact? The line count is high, but a lot of the early parts especially were just moving code 🙂 |
8d2ce53
to
f92d077
Compare
@Forgind I've rebased the code moves into separate commits. |
...ft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs
Show resolved
Hide resolved
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs
Show resolved
Hide resolved
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs
Show resolved
Hide resolved
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/xlf/Strings.cs.xlf
Show resolved
Hide resolved
…ld prevent workload install state from being used
This reverts commit 8ce7dca.
bfee8d8
to
98221a3
Compare
@jaredpar This commit seems to have caused the Full Framework CI leg to time out. Is returning a |
…WorkloadResolver.GetInstalledManifests
This PR contains a bug fix and a feature.
Bug Fix
Description
Fixes issue where when reading side-by-side workload manifests, the Manifest ID would be reported incorrectly.
Customer Impact
If this change doesn't go into 7.0.4xx / VS 17.7, then VS 17.7 and its version of MSBuild will not work properly with future builds of the .NET 8 SDK (once we switch to side-by-side workload manifests). The behavior will either be that the resolver will crash, preventing builds from succeeding, or that it won't successfully load any workloads.
Regression?
Risk
Verification
Feature
Description
Implements last part of resolver logic for dotnet/designs#294, which is to honor workload install state. This will support commands which install a different workload set version, for example
dotnet workload update --version 8.0.101
.Customer Impact
If this change doesn't go into 7.0.4xx / VS 17.7, then in some cases where a command is run that selects a specific workload set version, that would not be honored by Visual Studio 17.7 and its version of MSBuild.
A workaround would be to specify the desired workload set version in a global.json file.
Regression?
Risk
Verification