I have an automatic build process that I would like to expand so that I can create libraries that I distribute through NuGet. Running nuget.exe to create packages is currently a manual operation.
What is the best way to install VS 2010 so that the NuGet file (* .nupkg) is the final result of the Release build?
Keep in mind that I have other files (content and tools) for some packages. And, in most cases, I have several projects combined into one NuGet package to support .NET 4, Silveright and Phone 7.
(I must clarify that the existing βautomatedβ process is a simple run-file runner that creates a solution using the command line.)
UPDATE
I want to update this discussion because the problem has not been resolved. Although the @pravin link is supplied, it is useful, it does not take into account the fact that I have several projects in one package, as well as other content, such as PowerShell scripts, configurations and source code conversions, etc.
The best example I can use is a build with .NET version 4 and Silverlight 5. They are distributed in one package. I cannot use the post-build event to create a package because the package depends on two projects.
visual-studio-2010 nuget msbuild nuget-package
SonOfPirate Feb 07 '12 at 17:30 2012-02-07 17:30
source share