Sep 18, 2013 at 4:22 PM
Edited Sep 18, 2013 at 4:48 PM
I had put together a custom Team Build 2012 Build Template to support creating NuGet packages as part of a Team Build. It was working for me but there were a lot of tweaks involved and it felt a bit fragile, so I didn't feel comfortable publicizing it
for others to use.
Team Build 2013 and the new Build Template makes it much easier. I've uploaded the scripts I'm using that leverage the Pre and Post build script options added to the Team Build 2013 Build Process.
is the name of the project. It does two key things:
1) Pre-Build runs Package Restore so any NuGet packages you might use that plug into the MSBuild Process (SlowCheetah, etc...) work as expected
2) Post-Build packages any Projects in the Solution that have a .nuspec sitting beside it.
Feedback and bug reports welcome. I publish my packages to a local file server, not to the official NuGet repository, but changing that is a simple exercise if you need to do it.