共用方式為


s4:MainBundle

Description

指定主要套件組合套件的相關信息。 (s4:MainBundle)

元素階層

s4:AppInstaller

     <s4:MainBundle>

Syntax

<s4:MainBundle     Name = A string with a value between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.
    Publisher = A string with a value between 1 and 8192 characters in length that fits the regular expression  of a distinguished name.
    Version = A version string in quad notation, "Major.Minor.Build.Revision" where Major cannot be "0".
    Uri = Web URI as a string between 1 and 2084 characters in length.
></s4:MainBundle>

屬性

屬性 描述 資料類型 必要
名稱 套件組合名稱,如套件組合指令清單中的識別專案所指定。 Name 屬性不區分大小寫。 長度介於 3 到 50 個字元之間的字串,其中包含英數位、句號和虛線字元。 Yes
Publisher 發行者,如套件組合指令清單中的身分識別專案所指定。 長度介於 1 到 8192 個字元之間的字串,其符合辨別名稱的正則表示式。 Yes
版本 版本,如套件組合指令清單中的身分識別專案所指定。 四次表示法中的版本字串,“Major.Minor.Build.Revision”,其中 Major 不能是 “0”。 Yes
Uri 應用程式套件位置的 URI。 Web URI 作為長度介於 1 到 2084 個字元之間的字串。 Yes

父項目

父項目 Description
s4:AppInstaller 定義 AppInstaller 檔案的根元素。

備註

元素中<AppInstaller>只能宣告其中一個 <MainBundle><MainPackage>

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

規格需求

需求
xmlns:s4=http://schemas.microsoft.com/appx/appinstaller/2021 Windows 版本 21H2 組建 22000 中引進的功能需要此命名空間
最低 OS 版本 Windows 版本 21H2 組建 22000