Using tools with cake.frosting #2931
-
Hi all, I'm looking at switching a number of our build projects to Cake Frosting, because I find the experience of editing with an IDE that's working to be far easier :) However I can't quite figure out how to use tools such as those referenced in these lines:
I have things working by including the nugets, copying the tools as part of msbuild and registering the executables "manually", but I would have thought there was a better solution. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@nathangiuliani Add a reference to the 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 to add the |
Beta Was this translation helpful? Give feedback.
-
Thanks @patriksvensson and @pascalberger. All working as expected now - the problem I had originally is, as you expect, the nuget provider not being loaded. |
Beta Was this translation helpful? Give feedback.
@nathangiuliani Add a reference to the
Cake.NuGet
package in your project and then add the following code to theConfigure
method.We will add support for this automatically in the 1.0 release of Cake (so you just need …