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 ...

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.