Automatically creating a new version of a NuGet package with each new build
Posted: (EET/GMT+2)
If you're developing your own NuGet packages, chances are you'd like to automatically build the NuGet package easily and directly from Visual Studio. Of course, you can easily create for instance a MSBuild post-build task, and run some PowerShell magic at that point to create your package.
I recently noticed that there's an easier way: if you install a NuGet package called "Create New NuGet Package From Project" onto your NuGet source project, you will automatically get all the necessary scripts and configurations in place.
After you install this package, each successful build automatically updates your NuGet package based on your .nuspec configuration file. The new NuGet package (the .nupkg file) is automatically places into your output folder.
Hope this helps!