Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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