Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create nuget package from Visual Studio 2013

I have installed the NuGet.Tools.2013.vsix on my VS2013. And I like create a nuget package from Manager Console, but when I try I get a mensagem:

The term 'nuget' 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 correct and try again.

I don't know what I do wrong.

Is possible use the Manager Console to create a package, or I need use other stuff.

like image 390
AFetter Avatar asked Nov 21 '13 23:11

AFetter


People also ask

How do I open the package manager console in Visual Studio 2013?

Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command.

How do I create a NuGet package?

NuGet Package ManagerSelect Project > Manage NuGet Packages. In the NuGet Package Manager page, choose nuget.org as the Package source. From the Browse tab, search for Newtonsoft.Json, select Newtonsoft.Json in the list, and then select Install. If you're prompted to verify the installation, select OK.


1 Answers

Not sure I fully understand the question, but if you are using the Package Manager Console in Visual Studio then you don't need to start commands with nuget in that window. I typically use the Package Manager Console for installing/updating packages for my current solution. For example:

Install-Package Nunit

Usually you create your packages by calling nuget from the normal Windows command line with something like:

nuget pack Library.csproj

See http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package for more info.

like image 70
Neil Kilbride Avatar answered Oct 14 '22 19:10

Neil Kilbride