<assemblyIdentity>項目 (ClickOnce 應用程式)<assemblyIdentity> element (ClickOnce application)

識別應用程式部署在ClickOnceClickOnce部署。Identifies the application deployed in a ClickOnceClickOnce deployment.



元素和屬性Elements and attributes

assemblyIdentity是必要元素。The assemblyIdentity element is required. 它包含沒有子項目,並具有下列屬性。It contains no child elements and has the following attributes.

屬性Attribute 描述Description
Name 必要項。Required. 識別應用程式的名稱。Identifies the name of the application.

如果Name包含特殊字元,例如單引號或雙引號括住,應用程式可能無法啟動。If Name contains special characters, such as single or double quotes, the application may fail to activate.
Version 必要項。Required. 指定應用程式的版本號碼,格式如下: major.minor.build.revisionSpecifies the version number of the application in the following format: major.minor.build.revision
publicKeyToken 選擇性。Optional. 指定 16 個字元的十六進位字串,表示最後 8 個位元組SHA-1簽署的應用程式或組件之公開金鑰的雜湊值。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. 公開金鑰用來簽署類別目錄必須是 2048 位元或更高。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.
processorArchitecture 必要項。Required. 指定的處理器。Specifies the processor. 有效的值為msil對所有處理器來說x86的 32 位元 WindowsIA64的 64 位元 Windows 和Itanium適用於 Intel 64 位元 Itanium 處理器。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.
language 必要項。Required. 識別兩個組件語言代碼 (例如en-US) 的組件。Identifies the two part language codes (for example, en-US) of the assembly. 此元素為asmv2命名空間。This element is in the asmv2 namespace. 如果未指定,預設值是neutralIf unspecified, the default is neutral.



下列程式碼範例說明assemblyIdentity中的項目ClickOnceClickOnce應用程式資訊清單。The following code example illustrates an assemblyIdentity element in a ClickOnceClickOnce application manifest. 此程式碼範例是中提供之較大範例的一部分NdptecclickThis code example is part of a larger example provided in ClickOnce Application Manifest.


  name="My Application Deployment.exe"
  type="win32" />

另請參閱See also