-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error condition fix Fixes #40297 #41741
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,6 +123,13 @@ protected bool TryHandleWorkloadUpdateFromVersion(ITransactionContext context, D | |
_workloadInstaller.UpdateInstallMode(_sdkFeatureBand, true); | ||
} | ||
|
||
// Delete the current advertising manifest because if we fail to find the right workload version, we want to fail. | ||
var advertisingPackagePath = Path.Combine(_userProfileDir, "sdk-advertising", _sdkFeatureBand.ToString(), "microsoft.net.workloads"); | ||
if (Directory.Exists(advertisingPackagePath)) | ||
{ | ||
Directory.Delete(advertisingPackagePath, recursive: true); | ||
} | ||
Comment on lines
+126
to
+131
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think after my refactoring, this is probably not necessary anymore. Can you verify or explain what the scenario was where this was broken? |
||
|
||
_workloadManifestUpdater.DownloadWorkloadSet(_workloadSetVersionFromGlobalJson ?? _workloadSetVersion, offlineCache); | ||
return TryInstallWorkloadSet(context, out updates, throwOnFailure: true); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,6 @@ | |
<value>No workload update found.</value> | ||
</data> | ||
<data name="WorkloadVersionRequestedNotFound" xml:space="preserve"> | ||
<value>Workload version {0} not found.</value> | ||
<value>Workload version {0} not found. Adding a feed that contains it to your NuGet.config may help.</value> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The message now uses
I don't think we need a message here about adding a feed, as in most cases the workload should be available on NuGet.org and they shouldn't need to mess with their feeds. If the
|
||
</data> | ||
</root> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
nit: Can you pull microsoft.net.workloads out into a variable with a clear name so we can tell this is the workload set folder?
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.
dsplaisted creates that as a constant in #39991, so I'd rather wait for that to come in then move it somewhere more central and use it.