IT:AD:Nuget:HowTo:Pack Packages within a CI Environment
Summary
After the CI environment (TeamCity, Jenkins, TFS) has successfully completed a build of the assemblies, you have to pack them.
Proccess
The Build Step has to have a command such as:
NuGet Pack MyProject.csproj // NuGet Pack YourPackage.nuspec
If you need to override the version that is in the nuspec file – which is what you want when creating a package in a CI – try the following:
NuGet Pack MyProject.csproj -Version %SOME_ENV_VAR% -Output "c:\somewhere\" -Properties Configuration=Release;var2=val2;var3=val3