Skip to content

Using tools with cake.frosting #2931

Discussion options

You must be logged in to vote

@nathangiuliani Add a reference to the Cake.NuGet package in your project and then add the following code to the Configure method.

public void Configure(ICakeServices services)
{
    // ...

    // Register the NuGet module
    var module = new NuGetModule(new CakeConfiguration(new Dictionary<string, string>()));
    module.Register(services);

   // Register the tools
    services.UseTool(new Uri("nuget:?package=OctopusTools&version=7.4.2"));
    services.UseTool(new Uri("nuget:?package=NUnit.ConsoleRunner&version=3.11.1"));
    services.UseTool(new Uri("nuget:?package=OpenCover&version=4.7.922"));
}

We will add support for this automatically in the 1.0 release of Cake (so you just need …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@pascalberger
Comment options

@patriksvensson
Comment options

Answer selected by patriksvensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants