O'Reilly logo

Pro NuGet by Xavier Decoster, Maarten Balliauw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Packages

This command creates a new package when supplied with a .nuspec package specification file:

New-Package [[-ProjectName] <string>] [-SpecFileName] <string> [-TargetFile] <string>images  [-NoClobber] [<CommonParameters>]

Available parameters for this command are shown in Table C-5.

images

To create a new NuGet package based on the currently selected project in the NuGet Package Manager Console, you simply call New-Package. This will work if you have a single .nuspec file—yes, only one!—within this project.

If you want to specify the NuGet manifest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required