-
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
Improve error messages reported when a workload is missing #30230
Comments
An alternate title for this issue might be "workload restore is broken with macos workload; workload install must be used instead". It would be great to see |
@marcpopMSFT @rolfbjarne @dalexsoto @baronfel I'd love to understand how to move forward here. Not being able to restore workloads from the IDE is a barrier for multiple collaboration efforts between the VSMac and VSWin teams. We need developers on Windows to be able to load solutions that include projects that multi-target |
This particular error message should disappear with this fix: xamarin/xamarin-macios#17498 That said, I don't know if that would help the underlying issue (that the suggested solution from the error message doesn't work). |
The @rolfbjarne Would it be possible to move the code that adds to |
@dsplaisted I changed it to only add to |
It probably works, but it looks like the import path depends on a property that is set in the workloads, so when the workloads aren't imported the property is blank so its trying to import from a path relative to the workload manifest targets instead. So it's not checking the existence of the file it's actually trying to import, it's checking a different file path which will probably never exist. It seems like it would be more precise to check if the property was set, or to move the logic to the import targets where you know it will be set. |
Ok, I've filed an issue to see if we can get this done: xamarin/xamarin-macios#17618 |
Thanks everyone for digging into this. Happy that we found a resolution. |
When a repo is cloned that requires certain workload to be installed (e.g. vsmac) that is not currently installed,
dotnet restore
reports the following error:Following the suggestion and running
dotnet workload restore
fails with a cryptic error:The actual command that's need to build the repo is:
dotnet workload install macos
The error message should be fixed to point the user the right direction.
Further technical details
The text was updated successfully, but these errors were encountered: