Skip to content

cake-contrib/Cake.SmartAssembly

Repository files navigation

Cake.SmartAssembly

A Cake AddIn that extends Cake with Redgate's SmartAssembly.

cakebuild.net NuGet

Branch Status
Master Build status
Develop Build status

Important

1.5.0

  • References Cake 4.0.0
  • Drops support for .NET Framework
  • Supports .net 6+

Requirements

Redgate's SmartAssembly has to be installed. Addin uses the latest version according to installation directory (%ProgramFiles%/Red Gate/SmartAssembly*).

Runs only on Windows.

SmartAssembly command line documentation

Including addin

Including addin in cake script is easy.

#addin "Cake.SmartAssembly"

Usage

To use the addin just add it to Cake call the aliases and configure any settings you want.

#addin "Cake.SmartAssembly"

...

Task("Create")
    .Does(() => {
            SmartAssemblyCreate(
                // sa project
                File("./test.saproj"),
                // input assembly
                File("./[path]\test.exe"), 
                // output assembly
                File("./[path]\test_sa.exe"), 
                new SmartAssemblySettings { TamperProtection = true });
    });
Task("Build")
    .Does(() => {
            SmartAssemblyBuild(
                // sa project
                File("./test.saproj"), 
                new SmartAssemblySettings { TamperProtection = true });
    });

Discussion

If you have questions, search for an existing one, or create a new discussion on the Cake GitHub repository, using the extension-q-a category.

Join in the discussion on the Cake repository

Credits

Brought to you by Miha Markic and contributors.

Mastodon Follow