I\'m trying to get our TFS2015 Build (TFSBuild vnext) going along with VS Team Services.
Thus far most blogs and documentation has been helpful, except for when try
In the RTM of Team Foundation Server 2015 you have to add a build step of the type "NuGet Installer", and restore the packages of the Solution file before you run the actual build process. In this task you can pass the argument -ConfigFile path/to/nuget.config
which contains your repository path.
For Example:
<configuration>
<packageSources>
<add key="Internal Nuget" value="\\srv-nuget\Repo" />
</packageSources>
</configuration>
Alternatively you could also add a NuGet Installer
build step before the Visual Studio Build
step in your build configuration to restore all NuGet packages.
There you can pass the location of your private repo as argument to nuget.exe
:
-source "https://www.nuget.org/api/v2/;http://mynugetserver"