Skip to content

Confusing error for missing workload set requested in global.json #40297

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

Closed
Tracked by #35455
Forgind opened this issue Apr 18, 2024 · 1 comment
Closed
Tracked by #35455

Confusing error for missing workload set requested in global.json #40297

Forgind opened this issue Apr 18, 2024 · 1 comment
Assignees
Milestone

Comments

@Forgind
Copy link
Contributor

Forgind commented Apr 18, 2024

Describe the bug

I specified a specific workload version in a global.json file, except that workload version was nowhere to be found. I expected an error, and it did fail (good), but the error message was confusing and a bit wrong:
Workload installation failed: Workload version 8.0.300-preview.1.24164.2, which was specified in C:\GitHub\sdk\global.json, was not found. Run "dotnet workload restore" to install this workload version.

It should instead say something more like Workload installation failed: Workload version 8.0.300-preview.1.24164.2, which was specified in C:\GitHub\sdk\global.json was not found. Adding a feed that contains it to your NuGet.config may help.

To Reproduce

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
@ghost ghost added Area-Workloads untriaged Request triage from a team member labels Apr 18, 2024
@Forgind Forgind removed the untriaged Request triage from a team member label Jun 4, 2024
@Forgind Forgind added this to the 8.0.4xx milestone Jun 4, 2024
@Forgind
Copy link
Contributor Author

Forgind commented Jan 29, 2025

The error message is now simpler but correct. Closing this.

@Forgind Forgind closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant