Replies: 2 comments 1 reply
-
@tapika I am not sure I follow what you are asking for here. In the example that you provide, I don't see any command line argument parsing happening. Can you elaborate on what exactly you would like to see, perhaps comparing what you currently have to do. Here, I am assuming you are referring to Cake.Frosting, as there isn't anything called Cake.Frosten, unless you are referring to a 3rd party addin. |
Beta Was this translation helpful? Give feedback.
-
Using it would look something like this using Cake.Bridge.DependencyInjection;
using Cake.Common.Tools.DotNet;
using Cake.Core;
using Microsoft.Extensions.DependencyInjection;
var serviceCollection = new ServiceCollection()
.AddCakeCore();
var context = serviceCollection
.BuildServiceProvider()
.GetRequiredService<ICakeContext>();
context.DotNetRestore(); Example gist of above: https://gist.github.com/devlead/5cff67bf9aa87e839b97d46dca5a5f1f#file-program-cs |
Beta Was this translation helpful? Give feedback.
-
Hi !
I think it would be nice to use
Cake.Frosten
without need to parse command line arguments.Maybe syntax could be something like
Beta Was this translation helpful? Give feedback.
All reactions