The term nougat is not recognized

Trying to run any nuget command from PM Console , and I get this error.

nuget: the term 'nuget' is not recognized as a cmdlet name, function, script file, or operating program. Check the spelling of the name, or if the path was included, make sure the path is correct and try again. On line: 1 char: 1 + nuget update -self

What should be the path when I run this command?

I saw this question and the answer => 'nuget' is not recognized, but other nuget commands work

and based on the answer, I copied nuget.exe to the folder and set the path. After that, I still get the same error.

+5
source share
1 answer

The NuGet command from the PM Console is different from the NuGet.exe CLI Reference . The nuget command is not supported by the PM console. Check if your NuGet team is correct. Alternatively, you can try using a different command from the PM console to check for this problem:

 Get-Package -ListAvailable 

If the entire command is not recognized, check and update the version of Windows. In version 1511 you need to upgrade to .64 or newer builds ... otherwise you will encounter a powershell error.

Then upgrade NuGet VSIX ,

Open Visual Studio -> Tools -> Extensions and Updates -> Updates,

Update Nuget Package Manager for Visual Studio 2013/2015 (note that: after updating, update your visual studio).

+2
source

Source: https://habr.com/ru/post/1263630/


All Articles