Using the spec Command

Generate a nuspec for a new package with the following command:

nuget spec [package id]

If this command is run in the same folder as a project file (.csproj, .vbproj, or .fsproj), it will create a package manifest that uses replacement tokens, such as $id$, $version$, $description$, and $authors$.

Available options are shown in Table B-10.

images

images

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.