Last active
January 27, 2017 20:22
-
-
Save romipetrelis/9ea9c0b3a4e243820b6ec21ca92506f2 to your computer and use it in GitHub Desktop.
Restore nuget packages during build (for old versions of TFS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
$nugetPath, # Specified in your build definition. Ex: \\someunc\somewhere\nuget.exe | |
$slnPath # Specified in your build definition. Ex: $(TF_BUILD_SOURCESDIRECTORY)\MySolutionName.sln | |
) | |
$exp = $nugetPath + " restore " + $slnPath | |
Invoke-Expression $exp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment