Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Signs the specified file using the specified certificate.
Parameters
The following table describes the parameters of the SignFile task.
Parameter | Description |
---|---|
CertificateThumbprint |
Required String parameter. Specifies the certificate to use for signing. |
SigningTarget |
Required ITaskItem parameter. Specifies the files to sign with the certificate. |
TimestampUrl |
Optional String parameter. Specifies the URL of a time stamping server. |
Remarks
Example
The following example uses the SignFile task to sign the files specified in the FilesToSign
item collection with the certificate specified by the Certificate
property.
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<FileToSign Include="File.exe" />
<ItemGroup>
<PropertyGroup>
<Certificate>Cert.cer</Certificate>
</PropertyGroup>
<Target Name="Sign">
<SignFile
CertificateThumbprint="$(Certificate)"
SigningTarget="@(FileToSign)" />
</Target>
</Project>