MainBundle

MainBundle 元素會指定套件組合套件的相關資訊,其中包括名稱、發行者、版本和 uri。

元素階層

<AppInstaller>
**MainBundle**

語法

<MainBundle 
    Name        = A string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.
    Publisher   = A string between 1 and 8192 characters in length that fits the regular expression of a distinguished name : "(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*". Further, semantic validation ensures that the string is compliant with CertNameToStr Windows API implementation of X.500 rules.
    Version     = A version string in quad notation, "Major.Minor.Build.Revision".
    Uri         = Uri to the app package location />

屬性和項目

屬性

屬性 描述 資料類型 必要
Name 組合資訊清單中 identity 元素所指定的名稱。 Name 屬性不區分大小寫。 長度介於3到50個字元之間的字串,由英數位元、句號和虛線字元所組成。 Yes
Publisher Publisher,如套件組合資訊清單中的 identity 元素所指定。 介於1到8192個字元之間的字串,長度符合辨別名稱的正則運算式。 此外,語意驗證可確保字串符合 CertNameToStr Windows API 實作為500規則的規範。 Yes
版本 套件組合資訊清單中 identity 元素所指定的版本。 四個標記法中的版本字串: Yes
Uri 應用程式套件位置的 Uri URI,以介於1到2084個字元之間的字串長度。 Yes

父項目

父項目 描述
AppInstaller Appinstaller 檔的根項目。

備註

只有其中一個 <MainBundle><MainPackage> 可以在專案中 <AppInstaller> 宣告。

<MainBundle>元素只可用於應用程式封裝套件組合 ( .appxbundle) 。

需求

Namespace http://schemas.microsoft.com/appx/appinstaller/2017