According to this http://docs.nuget.org/docs/start-here/using-the-package-manager-console I should see the PM prompt and commands like get-packages
should work. With my VS2010 the Package Manager Console prompt says
PS E:\myprojectfolder
and none of the commands work - it issues an error saying:
PS E:\project> get-package -ListAvailable The term 'get-package' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is co rrect and try again. At line:1 char:12 + get-package <<<< -ListAvailable + CategoryInfo : ObjectNotFound: (get-package:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Any ideas?
Opening the console and console controls Open the console in Visual Studio using the Tools > NuGet Package Manager > Package Manager Console command. The console is a Visual Studio window that can be arranged and positioned however you like (see Customize window layouts in Visual Studio).
Starting in Visual Studio 2017, use the Tools > NuGet Package Manager > Package Manager Settings menu command, then select Clear All NuGet Cache(s).
Rather than voting to close and leaving the answer in comments, it's worth posting it as an actual answer so that others with the problem see an answered question in search results, rather than an unanswered one :-)
Copied from the comments:
restarting the computer and VS somehow fixed this issue, closing
Yes I've seen this issue before (where the NuGet module isn't loaded)
This issue is on the NuGet issue tracker, though it's closed (at the moment)
The solution to this problem would be:
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