Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dotnet tool update not getting latest version in nuget

I'm playing with dotnet-tool and nuget; I noticed that if I push a refresh nameOfPackage.nupkg to the nuget repo and then run dotnet tool update -g nameOfPackage it does not take the new package version.

I have to force a cache clear to get it to take the latest one.

dotnet nuget locals http-cache -c

I previously installed the package doing

dotnet tool update -g nameOfPackage

Is this by design? Do I have to flush the cache every single time to make sure there are no updates to the tool?

like image 572
JosephS Avatar asked Oct 27 '25 05:10

JosephS


1 Answers

Adding the --no-cache option forces the update.

dotnet tool update -g nameOfPackage --no-cache

enter image description here

Source: dotnet tool update

like image 185
JosephS Avatar answered Oct 30 '25 16:10

JosephS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!