-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow dotnet workload update print-download-link-only to use fallback and work with prior SDK versions #26369
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
Allow dotnet workload update print-download-link-only to use fallback and work with prior SDK versions #26369
Conversation
…printDownloadLinkWithPriorSdkVersions
src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
Outdated
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs
Outdated
Show resolved
Hide resolved
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs
Outdated
Show resolved
Hide resolved
src/Tests/dotnet-workload-install.Tests/GivenWorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
nagilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In response to earlier comment, provided more targeted feedback
src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs
Outdated
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadOptionsExtensions.cs
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Show resolved
Hide resolved
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
| { | ||
| try | ||
| { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update UpdateAdvertisingManifestAsync so that it calls GetManifestPackageDownloadsAsync instead of having the logic duplicated.
src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs
Outdated
Show resolved
Hide resolved
src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs
Outdated
Show resolved
Hide resolved
src/Tests/dotnet-workload-update.Tests/GivenDotnetWorkloadUpdate.cs
Outdated
Show resolved
Hide resolved
…s passed in from command line
|
Approved offline, fingers crossed. |
fixes #24335
Description
The VSMac updater calls the prior band SDK and asks it which workloads to install with the current feature band. The feature was originally designed to work with only the current band and not cross-band and this change fixes it to work that way.
Customer Impact
Without this change, VSMac customers who upgrade will not be told on their initial upgrade that there are workloads that require updates. They will be forced to either drop to the command line and manually update workloads or wait for a future update that may or may not work depending on if it's a patch update or not.
Regression?
Risk
The change itself is a bit bigger but it's affect is almost entirely in the --print-downlaod-linke-only feature of the workloads CLI. This command is only used by VSMac and it's completely broken today.
Verification
We have not tested with VSMac yet as we need either an official build with newer workloads or to backport this to 6.0.3xx.