-
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 tool restore
installing wrong version specified in dotnet-tools.json
#36434
Comments
A temporary solution is to create a feed on myget or another provider and populate it with a single version of a package that's required. |
This should be fixed in #35884. Does the problem still occur? |
Is there a newer version then RC2 that I can test. |
Tested with .NET 8.0 (GA), it's no longer a problem for me. |
Yes, works for me now as well. |
Close as fixed |
Describe the bug
Trying to
dotnet tool restore
some specific version of dotnet-format, and it will restore wrong version that is specified on thedotnet-tools.json
To Reproduce
Prereq is to use .NET 8.0 SDK rc2 version (could not reproduce same issue from rc1)
and we have following settings:
.config/dotnet-tools.json
NuGet.Config
Then running
dotnet tool restore
will prompt thatdotnet-format
of version8.0.452306
is installed, but if we actually check.nuget/packages/dotnet-format
we have8.0.452407
version instead.Exceptions (if any)
Note that this bug is not reproduced on rc1.
Further technical details
result of
dotnet --info
The text was updated successfully, but these errors were encountered: