Last active
October 27, 2019 12:49
-
-
Save Xeinaemm/180d5a3921c47d72ab3950ee69d4f02b to your computer and use it in GitHub Desktop.
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
#addin "Cake.FileHelpers&version=3.2.0" | |
void Restore(string root) => | |
NuGetRestore(new FilePath($"{root}{Argument<string>("Solution")}/{Argument<string>("Solution")}.sln"), GetRestoreSettings()); | |
NuGetRestoreSettings GetRestoreSettings() | |
{ | |
return new NuGetRestoreSettings | |
{ | |
NonInteractive = true, | |
Verbosity = NuGetVerbosity.Quiet, | |
ConfigFile = new FilePath(@"tools\nuget.config") | |
}; | |
} | |
Task("Restore").Does(() => Restore()); | |
RunTarget(Argument<string>("Target", "")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment