StrongNameReSignToolAliases.

StrongNameReSign(ICakeContext, IEnumerable<string>, StrongNameToolSettings) Method

Summary

Uses sn.exe to resign the specified assemblies.

Syntax

public static void StrongNameReSign(this ICakeContext context, IEnumerable<string> assemblies, StrongNameToolSettings settings)

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
assemblies IEnumerable<string> The assemblies to resign.
settings StrongNameToolSettings The Strong Name tool settings to use.

Return Value

Type Description
void