MainBundle
MainBundle 元素會指定套件組合套件的相關信息,包括名稱、發行者、版本和 URI。
元素階層
- <AppInstaller>
-
- **MainBundle**
Syntax
<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 />
屬性和項目
屬性
屬性 | 描述 | 資料類型 | 必要 |
---|---|---|---|
名稱 | 套件組合指令清單中 identity 元素中指定的名稱。 Name 屬性不區分大小寫。 | 長度介於 3 到 50 個字元的字串,包含英數位、句號和虛線字元。 | Yes |
Publisher | 在套件組合指令清單中的識別元素中指定的發行者。 | 長度介於 1 到 8192 個字元之間的字串,符合辨別名稱的正則表示式。 此外,語意驗證可確保字串符合 X.500 規則的 CertNameToStr Windows API 實作。 | Yes |
版本 | 套件組合指令清單中識別元素中指定的版本。 | 四邊形表示法中的版本字串,“Major.Minor.Build.Revision”。 | Yes |
Uri | 應用程式套件位置的 URI | URI 作為長度介於 1 到 2084 個字元之間的字串。 | Yes |
父項目
父項目 | Description |
---|---|
AppInstaller | appinstaller 檔的根元素。 |
備註
元素中<AppInstaller>
只能宣告 其中一個 <MainBundle>
或 <MainPackage>
。
元素 <MainBundle>
應該只用於應用程式套件套件組合 (.appxbundle) 。
需求 | 描述 |
---|---|
xmlns=http://schemas.microsoft.com/appx/appinstaller/2017 |
Windows 10 1709 版中引進的功能需要此命名空間。 |
最低 OS 版本 | Windows 10 (版本 1709) |