Skip to content
Discussion options

You must be logged in to vote

ICakeModule is for extending Cake from external assemblies, i.e., replacing core functionality i.e. replacing a logger/filesystem/etc. implementation via a NuGet package; some docs about it here
https://cakebuild.net/docs/extending/modules/

Modules are IoC agnostic, so works with Cake.Tool which uses Autofac as Cake predates MS IOC, Frosting, and SDK both use Microsoft.Extensions.DependencyInjection.

An example of a module is Cake.BuildSystems.Module which enhances Cake's interaction with CI/CD providers.

You could in Frosting use something like

CakeHost()
        // Register all modules from Cake.Buildsystems.Module
        .UseModule<YourModule>()

But internally for your code, I would use

Replies: 1 comment

Comment options

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