GenerateDeploymentManifest Task
Generates a ClickOnce deployment manifest. A ClickOnce deployment manifest describes the deployment of an application by defining a unique identity for the deployment, identifying deployment traits such as install or online mode, specifying application update settings and update locations, and indicating the corresponding ClickOnce application manifest.
Parameters
The following table describes the parameters for the GenerateDeploymentManifest task.
Parameter | Description |
---|---|
AssemblyName |
Optional String parameter. Specifies the Name field of the assembly identity for the generated manifest. If this parameter is not specified the name is inferred from the EntryPoint or InputManifest parameters. If the name cannot be inferred, the task throws an error. |
AssemblyVersion |
Optional String parameter. Specifies the Version field of the assembly identity for the generated manifest. If this parameter is not specified, the task uses the value “1.0.0.0”. |
DeploymentUrl |
Optional String parameter. Specifies the update location for the application. If this parameter is not specified, no update location is defined for the application. However, if the UpdateEnabled parameter is true, the update location must be specified. The specified value should be a fully qualified URL or UNC path. |
Description |
Optional String parameter. Specifies an optional description for the application. |
DisallowUrlActivation |
Optional Boolean parameter. Specifies whether the application should automatically be run when activated through a URL. If this parameter is true, the application can only be started from the Start Menu. The default value of this parameter is false. This input only applies when the Install parameter value is true. |
EntryPoint |
Optional ITaskItem[] parameter. Indicates the entry point for the generated manifest assembly. For a ClickOnce deployment manifest, this input specifies the ClickOnce application manifest. |
InputManifest |
Optional ITaskItem parameter. Indicates an input XML document to serve as a base for the manifest generator. This allows structured data such as custom manifest definitions to be reflected in the output manifest. The root element in the XML document must be an assembly node in the asmv1 namespace. |
Install |
Optional Boolean parameter. Specifies whether the application is an installed application or an online only application. If this parameter is true, the application will be installed on the user’s Start Menu, and can be removed from the Add/Remove Programs dialog. If this parameter is false, the application is intended for online use from a Web page. The default value of this parameter is true. |
MapFileExtensions |
Optional Boolean parameter. Specifies whether or not the .deploy file name extension mapping is used. If this parameter is true, every application file is published with a .deploy file name extension. This option is useful for Web server security to limit the number of file name extensions that need to be unblocked to enable ClickOnce application deployment. The default value of this parameter is false. |
MaxTargetPath |
Optional String parameter. Specifies the maximum allowable length of a file path in a ClickOnce application deployment. If this parameter is specified, the length of each file path in the application is checked against this limit. Any items that exceed the limit will result in a build warning. If this input is not specified or is zero, no checking is performed. |
MinimumRequiredVersion |
Optional String parameter. Specifies whether or not the user can skip the update. If the user has a version less than the minimum required, he or she will not have the option to skip the update. This input only applies when the value of the Install parameter is true. |
OutputManifest |
Optional ITaskItem parameter. Specifies the name of the generated output manifest file. If this parameter is not specified, the the name of the output file is inferred from the identity of the generated manifest. |
Platform |
Optional String parameter. Specifies the target platform of the application. This parameter can have the following values:
The default value is AnyCPU. |
Product |
Optional String parameter. Specifies the name of the application. If this parameter is not specified, the name is inferred from the identity of the generated manifest. This name is used for the shortcut name on the Start menu and is part of the name that appears in the Add/Remove Programs dialog. |
Publisher |
Optional String parameter. Specifies the publisher of the application. If this parameter is not specified, the name is inferred from the registered user, or the identity of the generated manifest. This name is used for the folder name on the Start menu and is part of the name that appears in the Add/Remove Programs dialog. |
SupportUrl |
Optional String parameter. Specifies the link that appears in the Add/Remove Programs dialog for the application. The specified value should be a fully qualified URL or UNC path. |
TargetCulture |
Optional String parameter. Identifies the culture of the application, and specifies the Language field of the assembly identity for the generated manifest. If this parameter is not specified, it is assumed the application is culture invariant. |
TrustUrlParameters |
Optional Boolean parameter. Specifies whether or not URL query-string parameters should be made available to the application. The default value of this parameter is false, indicating that parameters will not be available to the application. |
UpdateEnabled |
Optional Boolean parameter. Indicates whether or not the application is enabled for updates. The default value of this parameter is false. This parameter only applies when the value of the Install parameter is true. |
UpdateInterval |
Optional Int32 parameter. Specifies the update interval for the application. The default value of this parameter is zero. This parameter only applies when the values of the Install and UpdateEnabled parameters are both true. |
UpdateMode |
Optional String parameter. Specifies whether updates should be checked in the foreground before starting the application, or in the background as the application is running. This parameter can have the following values:
The default value of this parameter is Background. This parameter only applies when the values of the Install and UpdateEnabled parameters are both true. |
UpdateUnit |
Optional String parameter. Specifies the units for the UpdateInterval parameter. This parameter can have the following values:
This parameter only applies when the values of the Install and UpdateEnabled parameters are both true. |
Remarks
For information on using the GenerateDeploymentManifest task, see GenerateApplicationManifest Task.
See Also
Reference
GenerateApplicationManifest Task
SignFile Task