Using Nuget without checking in nuget.exe #3399
Answered
by
augustoproiete
mandalorianbob
asked this question in
Q&A
-
I've got a Cake.Frosting build runner and a private nuget feed. I'd like to use Nuget to restore via the private feed, but Cake's unable to find nuget.exe. This is probably because I don't really have any local copies. I'd rather not store nuget.exe is my source, but I'm not sure how else to reliably get and use nuget in the context of a Frosting runner. Am I missing an option somewhere? |
Beta Was this translation helpful? Give feedback.
Answered by
augustoproiete
Jun 17, 2021
Replies: 1 comment 1 reply
-
@mandalorianbob An easy way to make public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
.InstallTool(new Uri("nuget:?package=NuGet.CommandLine&version=5.9.1"))
.Run(args);
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mandalorianbob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mandalorianbob An easy way to make
nuget.exe
available to Cake is to install the packageNuGet.CommandLine
as a tool viaInstallTool
.