SignToolSignAliases.

Sign(ICakeContext, IEnumerable<string>, SignToolSignSettings) Method

Summary

Signs the specified assemblies.

Syntax

[CakeMethodAlias]
public static void Sign(this ICakeContext context, IEnumerable<string> assemblies, SignToolSignSettings settings)

Examples

Task("Sign")
    .IsDependentOn("Clean")
    .IsDependentOn("Restore")
    .IsDependentOn("Build")
    .Does(() =>
{
    var files = new string[] { "Core.dll", "Common.dll" };
    Sign(files, new SignToolSignSettings {
            TimeStampUri = new Uri("http://timestamp.digicert.com"),
            CertPath = "digitalcertificate.pfx",
            Password = "TopSecret"
    });
});

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
assemblies IEnumerable<string> The target assembly.
settings SignToolSignSettings The settings.

Return Value

Type Description
void