<assemblyIdentity> Element (ClickOnce Application)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at <assemblyIdentity> Element (ClickOnce Application).

Identifies the application deployed in a ClickOnce deployment.

  
      <assemblyIdentity   
   name  
   version  
   publicKeyToken  
   processorArchitecture  
   language  
/>  

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

AttributeDescription
NameRequired. Identifies the name of the application.

If Name contains special characters, such as single or double quotes, the application may fail to activate.
VersionRequired. Specifies the version number of the application in the following format: major.minor.build.revision
publicKeyTokenOptional. 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 application or assembly is signed. The public key that is used to sign the catalog must be 2048 bits or greater.

Although signing an assembly is recommended but optional, this attribute is required. If an assembly is unsigned, you should copy a value from a self-signed assembly or use a "dummy" value of all zeros.
processorArchitectureRequired. Specifies the processor. The valid values are msil for all processors, x86 for 32-bit Windows, IA64 for 64-bit Windows, and Itanium for Intel 64-bit Itanium processors.
languageRequired. Identifies the two part language codes (for example, en-US) of the assembly. This element is in the asmv2 namespace. If unspecified, the default is neutral.

Description

The following code example illustrates an assemblyIdentity element in a ClickOnce application manifest. This code example is part of a larger example provided in ClickOnce Application Manifest.

Code

<asmv1:assemblyIdentity   
  name="My Application Deployment.exe"   
  version="1.0.0.0"   
  publicKeyToken="43cb1e8e7a352766"   
  language="neutral"   
  processorArchitecture="x86"   
  type="win32" />  

ClickOnce Application Manifest
<assemblyIdentity> Element

Show: