Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Xeinaemm
Last active October 27, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xeinaemm/180d5a3921c47d72ab3950ee69d4f02b to your computer and use it in GitHub Desktop.
Save Xeinaemm/180d5a3921c47d72ab3950ee69d4f02b to your computer and use it in GitHub Desktop.
#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