Skip to content

Using Nuget without checking in nuget.exe #3399

Discussion options

You must be logged in to vote

@mandalorianbob An easy way to make nuget.exe available to Cake is to install the package NuGet.CommandLine as a tool via InstallTool.

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);
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mandalorianbob
Comment options

Answer selected by mandalorianbob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants