Skip to content

Frosting and "external" task #3327

Answered by WebDucer
WebDucer asked this question in Q&A
Discussion options

You must be logged in to vote

Found the solution. The assembly with the tasks have to be registered on CakeHost with AddAssembly.

public static void Main(string[] args) {
  var config = new BuildConfig("ProjectName");
  return new CakeHost()
    .AddAssembly(typeof(CleanTask).Assembly)
    .UseContext<BuildContext>()
    .BuildWithConfig(config)
    .Run(args);
}

Replies: 1 comment

Comment options

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