StrongNameReSignToolAliases.

StrongNameReSign(ICakeContext, FilePath, StrongNameToolSettings) Method

Summary

Uses sn.exe to resign the specified assembly.

Syntax

public static void StrongNameReSign(this ICakeContext context, FilePath assembly, StrongNameToolSettings settings)

Examples

Task("Resign")
    .IsDependentOn("Clean")
    .IsDependentOn("Restore")
    .IsDependentOn("Build")
    .Does(() =>
{
    var file = new FilePath("Core.dll");
    StrongNameReSign(file, new StrongNameToolSettings {
            Container = "YOUR_CONTAINER_NAME"
    });
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
assembly FilePath The target assembly to resign.
settings StrongNameToolSettings The Strong Name tool settings to use.

Return Value

Type Description
void