Summary
Signs the specified assembly.
- Namespace
- Cake
.Common .Tools .SignTool - Containing Type
- SignToolSignAliases
Syntax
[CakeMethodAlias]
public static void Sign(this ICakeContext context, string assembly, SignToolSignSettings settings)
Examples
Task("Sign")
.IsDependentOn("Clean")
.IsDependentOn("Restore")
.IsDependentOn("Build")
.Does(() =>
{
var file = "Core.dll";
Sign(file, new SignToolSignSettings {
TimeStampUri = new Uri("http://timestamp.digicert.com"),
CertPath = "digitalcertificate.pfx",
Password = "TopSecret"
});
});
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
assembly | string | The target assembly. |
settings | SignToolSignSettings | The settings. |
Return Value
Type | Description |
---|---|
void |