Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

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 file and project to be used, you could provide those values as follows:

New-Package -Project MyProjectName -SpecFileName MyPackage.nuspec

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial