Share via


SecurityUtilities.SignFile Method (String, Uri, String)

Signs a ClickOnce manifest or PE file.

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Shared Sub SignFile ( _
    certThumbprint As String, _
    timestampUrl As Uri, _
    path As String _
)
public static void SignFile(
    string certThumbprint,
    Uri timestampUrl,
    string path
)
public:
static void SignFile(
    String^ certThumbprint, 
    Uri^ timestampUrl, 
    String^ path
)
static member SignFile : 
        certThumbprint:string * 
        timestampUrl:Uri * 
        path:string -> unit
public static function SignFile(
    certThumbprint : String, 
    timestampUrl : Uri, 
    path : String
)

Parameters

  • certThumbprint
    Type: System.String

    Specifies the thumbprint, which is the SHA1 hash of the signing certificate, which is kept in your personal certificate store.

  • timestampUrl
    Type: System.Uri

    Indicates that the file is to be timestamped by the timestamp server at the specified HTTP address. This parameter can be NULL if you do not want a timestamp.

Remarks

This overload of the method calls SignTool.exe and therefore requires the .NET Framework 2.0 to be installed.

.NET Framework Security

See Also

Reference

SecurityUtilities Class

SignFile Overload

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace