.net-corenugetasp.net-core-cli

How do I update nuget.exe version used by dotnet cli


I have installed the dotnet core sdk and it all works. I want to update the nuget version though so that when I run dotnet pack it uses the latest nuget. With normal nuget.exe I can run nuget.exe update -self and it updates itself. However with dotnet cli there doesnt seem to be any equivalent command. I also cant find which nuget.exe path its referencing to update it there manually.

Any ideas on where its located or how to update this? Or do I need to just update the entire .net core SDK to get a newer nuget version?


Solution

  • I am pretty sure you can't upgrade the nuget version shipped in .NET Core. It's a core part of the .NET Core SDK and no individual component of SDK can be upgraded.

    Why do you want to use a newer NuGet version?