Prior to Visual Studio 2015, it was trivial to configure your project to automatically create NuGet packages. In particular, you did:
- Add .nuspec to the project.
- Enable NuGet package recovery in the context menu of the Solution context menu
- Edit the .csproj project file and set the build property
<BuildPackage> to true
And it's all!
However, starting with VS 2015, MSBuild-integrated package recovery has been removed and replaced with a new automatic package recovery. Although this is all good news, it seems that setting the build <BuildPackage> to true no longer triggers the automatic build of packages.
This is a serious break in functionality! Is there a way to configure NuGet auto builds without using post-build events? In particular, I am looking for an MSBuild solution, as it is the basis of my build workflow.
source share