Skip to content

Proof-of-concept Cake extensions using custom NuGet package types

License

Notifications You must be signed in to change notification settings

augustoproiete-sandbox/cake-extension-custom-package-types

Repository files navigation

README.md

Cake Extensions with Custom NuGet Package Types

Proof-of-concept using custom package types for Cake Addin, Module, and Recipe.

Extensions

Type NuGet package Package type Stable Prerelease
Addin Cake.PackageType.Addin CakeAddin Cake.PackageType.Addin NuGet version stable Cake.PackageType.Addin NuGet version prerelease
Module Cake.PackageType.Module CakeModule Cake.PackageType.Module NuGet version stable Cake.PackageType.Module NuGet version prerelease
Recipe Cake.PackageType.Recipe CakeRecipe Cake.PackageType.Recipe NuGet version stable Cake.PackageType.Recipe NuGet version prerelease

Usage

Addin

Call the Hello() alias in order to run the add-in using the default settings:

#addin nuget:?package=Cake.PackageType.Addin&version=0.1.0

Task("Example")
    .Does(() =>
{
    Hello();
});

RunTarget("Example");

Module

Use the hello scheme in a #tool directive in order to execute the module:

#module nuget:?package=Cake.PackageType.Module&version=0.1.0
#tool hello:?package=MyAwesomePackage&version=1.2.3

Recipe

Call the SayHello(string name) and SayBye(string name) helper methods included in the recipe:

#load nuget:?package=Cake.PackageType.Recipe&version=0.1.0

Task("Example")
    .Does(() =>
{
    SayHello("Augusto");
    SayBye("Augusto");
});

RunTarget("Example");

Working Examples

In the sample folder you can find working examples using different versions of Cake Tool and Frosting.

Release History

Click on the Releases tab on GitHub.


Copyright © 2021 C. Augusto Proiete & Contributors - Provided under the MIT License.