Modify TFS 2012 Default Build Process Template for Nuget solution restore

Topics: General
Jun 25, 2014 at 4:01 PM
I understand that TFS 2013 will have a new build template with a restorenugetpackages property (see here). However, not sure when we will upgrade from TFS2012 to 2013. Can I modify the default build template in TFS2012 to do something similar (restore nuget packages for the solution)? If so, how do I do this?

I modified the default build template in 2012 and added a InvokeProces / Nuget restore step just inside Clean Configuration (this step assumes the nuget.exe is in c:\program files\nuget on build server). Not exactly sure how to bind to solution name in workflow but here is my initial guess for InvokeProcess Step.

arguments=restore "$(SolutionPath)"


WorkingDirector=C:\Program Files\Nuget

Does this look correct?
Jun 26, 2014 at 5:57 PM