Joe Rall edited this page Jun 29, 2015 · 9 revisions
<?xml version="1.0"?>
    <package >
      <metadata>
        <id>$id$</id>
        <version>$version$</version>
        <title>$title$</title>
        <authors>$author$</authors>
        <owners>$author$</owners>
        <licenseUrl></licenseUrl>
        <projectUrl></projectUrl>
        <iconUrl></iconUrl>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>$description$</description>
        <releaseNotes></releaseNotes>
        <copyright>Copyright 2015</copyright>
      </metadata>
    </package>

First there is the new nuspec file. It contains place holders for most of the important values like id, version, title, authors, and owners. Make sure that that the corresponding values are filled out in the AssemblyInfo.cs file. The main ones to watch out for are AssemblyDescriptionand AssemblyCompany.

[assembly: AssemblyDescription("Project designed purely to test CoolWhip")]
[assembly: AssemblyCompany("MasterDevs")]

Note that the the licenseUrl, projectUrl, and iconUrlfields in the nuspec are left blank. These are entirely optional, but you need to remove them if you don't plan on using them. They are common enough that we leave them in by default.

You can test the nuspec file locally by running the following command. Make sure that you point to the csproj file, no the nuspec.

>nuget pack MasterDevs.CoolWhip.Test.csproj
 Attempting to build package from 'MasterDevs.CoolWhip.Test.csproj'.
 Packing files from 'c:\code\CoolWhip.Test\MasterDevs.CoolWhip.Test\MasterDevs.CoolWhip.Test\bin\Debug'.
 Using 'MasterDevs.CoolWhip.Test.nuspec' for metadata.
 Found packages.config. Using packages listed as dependencies
 Successfully created package 'c:\code\CoolWhip.Test\MasterDevs.CoolWhip.Test\MasterDevs.CoolWhip.Test\MasterDevs.CoolWhip.Test.1.0.0.0.nupkg'.

Prev | Next

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.