I have an automated build process that I\'d like to extend so I can build the libraries I am distributing via NuGet. Currently, running nuget.exe to create the packages is
A simple suggestion that might work good enough... just put it as Postbuild event into the .csproj file:
$(SolutionDir)\NuGet.exe pack $(ProjectPath) -OutputDirectory ..\..\$(OutDir) -IncludeReferencedProjects -Symbols -Properties Configuration=$(Configuration)
This will collect your custom .nuspec file (that needs to be named like the .csproj file) and build the .nupkg.
Thats it.
You can even do this simply within the Visual Studio Project settings.