-
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
dotnet restore no longer supports multiple runtimes #3843
Comments
Just hit the same problem trying to upgrade 2.2 to 3.0 Restoring with multiple RIDs is useful as it means things like building in containers can cache the |
….18 (#3843) - Microsoft.NET.Sdk - 3.1.200-preview.19613.18
I'm quite surprised to see this is 18 months old. In the docs: In the latest SDK, if you run this command:
you get the following error:
|
Also surprised to see this as still an issue, and on the docs in 2022 Using Sdk 5.0.303. |
Stumbled upon this documentation for I assume that the suggested way to restore multiple RIDs without adding them to the csproj explicitly is to If that is so, it seems that calling |
Just ran into the same issue:
|
Repo
Result
Speculation
It seems the multiple runtimes are being passed in as RuntimeIdentifier instead of RuntimeIdentifiers?
This used to work on 2.2
As a workaround I can put
<RuntimeIdentifiers>....
in the csproj and exclude the-r
switches, but I dont really want to do this, since it means updating a lot of csprojs.PS: I tried to find the cause for this, but got lost finding the source responsible for the
dotnet restore
command :(The text was updated successfully, but these errors were encountered: