次の方法で共有


<assemblyIdentity> Element

Identifies the deployment of the application deployed with a ClickOnce application.

<assemblyIdentity  
   name 
   version
      publicKeyToken
      processorArchitecture
   type
/>

Elements and Attributes

The assemblyIdentity element is required. It contains no child elements and has the following attributes.

Attribute Description

Name

Required. Identifies the human-readable name of the deployment for informational purposes.

If Name contains special characters, such as single or double quotes, the application may fail to activate.

Version

Required. Specifies the version number of the deployment, in the following format: major.minor.build.revision.

This value must be updated to process any updates for the application.

publicKeyToken

Required. Specifies a 16-character hexadecimal string that represents the last 8 bytes of the SHA-1 hash value of the public key under which the deployment manifest is signed. The public key used to sign must be 2048 bits or greater.

processorArchitecture

Required. Specifies the processor. The valid values are msil, x86, IA64, and amd64.

type

Required. For compatibility with Windows side-by-side installation technology. The only allowed value is win32.

Remarks

The assemblyIdentity element should uniquely identify the deployment manifest.

Example

The following code example illustrates an assemblyIdentity element in a ClickOnce deployment manifest. This code example is part of a larger example provided for the ClickOnce Deployment Manifest topic.

<!-- Identify the deployment. -->
<asmv1:assemblyIdentity name="MyApplication.app" 
   version="1.0.0.0" publicKeyToken="0123456789abcdef" 
   processorArchitecture="msil" type="win32" />

See Also

Reference

ClickOnce Deployment Manifest