I have a problem with nuget getting the first build of a specifik assembly version, not the latest build. Here are steps that explain what is going on:
Both build 98 and 102 have version number 1.2. How can I force dotnet restore to take the latest build of the nuget package without increasing the version number to 1.3?
Thanks!
Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.
By Command-line: You can download nuget.exe,and add the path where it exists to Path system environment variables. Then you could simply reference the nuget.exe directly. After that you can use command like nuget update YourSolution. sln in Package Manager Console to update the dependencies for solution.
Clear NuGet cache with command
dotnet nuget locals all --clear
Then NuGet takes the latest version of the package from the feed.
Follow the answer by Jiří Kyzlink to clear your NuGet cache.
Then follow with a dotnet add ProjectName package PackageName
to basically re-add the package and update the versioned reference in the project file.
dotnet restore
restores references from the project file. Solely clearing the cache doesn't change your project reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With