Cake Frosting Tasks in Library #3812
-
Hello, I am trying to create a library of Tasks that I can distribute to my applications as NuGet package. This way I don't have to duplicate code across my projects. As soon as I try to move the Tasks into their own library (at this point just another project) they are no longer found when running Cake. I currently have just a simple Program.cs that calls BuildHost.Run() and references my library. When I debug, I can see the targets passed in and it walk through the creation of the BuildContext, but once that is done it states it can't find the target. Is something like this even possible? Thanks. James |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is possible. See Cake.Frosting.Issues.Recipe for source code of a recipe package which provides some tasks for Frosting builds. To make tasks of such a library available to your Cake Frosting build you need to register them by adding the following line to the bootstrapping code in the
|
Beta Was this translation helpful? Give feedback.
This is possible. See Cake.Frosting.Issues.Recipe for source code of a recipe package which provides some tasks for Frosting builds.
To make tasks of such a library available to your Cake Frosting build you need to register them by adding the following line to the bootstrapping code in the
Main
method of your Cake Frosting project: