There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Adding "Nuget pack project.csproj" to a post-build event causes an infinite loop
Trying to automatically package a project on build, I added a post-build event to run "nuget pack" with the .csproj as an input. This caused an infinite loop as pack itself runs a build, so another post-build event is raised, and so on... until
the memory of my PC was filled up with lots of "nuget.exe" processes.
In order to be able to run "nuget pack" with the .csproj file (to get metadata from it) in a post-build event, it may have another parameter to avoid the build process, and perform only the package actions. Maybe it should do the build by default,
and only avoid it in a post-build event via parameter.
Something like: "nuget pack project.csproj -o packages -disableBuild"