We are using VSO with an on-prem build controller (TFS 2013). I've enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecated way with the .nuget folder).
Inside VS, restoring packages works just fine, however the build controller does not restore NuGet packages. The build controller runs under a service account and if I start VS (on the build server) as the service account and build my code it DOES restore the packages. How can I get the build controller to restore the missing packages?
In my BuildProcessTemplate folder of TFS, I DO NOT have a TfvcTemplate.12.xaml
, I only have DefaultTemplate.11.1.xaml
and as I've never edited the xaml file, I see that there is a Toolbox item for NuGetRestore
I'm unsure as to how to proceed, I'm kind of wondering why I don't have the TfvcTemplate.12.xaml
template, but since I don't, how can I get my build server/controller to restore NuGet packages?
I have edited the NuGet.config file for the service account (that lives in the AppData folder) as well as the NuGet.config file that lives in the .nuget folder in the root of my solution, however my builds always fail because of missing dependencies (NuGet packages).
Is there any way to solve this issue? Also, how can I get a TfvcTemplate.12.xaml
build template?