package.appxmanifest 配置文件详细介绍 win8 windows8

package.appxmanifest XML目录以及摘要


<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">


  <!-- Child elements -->
  ( Identity
  & Properties
  & Resources
  & Prerequisites
  & Dependencies?
  & Capabilities?
  & Extensions?
  & Applications?
  )


</Package>


{1}Applications 应用
代表一个或多个应用程序,包括包。
[1]Application  表示一个应用程序,包括部分或全部包交付的功能。
备注
Application 元素包含的属性,是常见的,涉及到的应用程序的扩展点。此信息用于其他的扩展点,以获得有关应用程序的信息。同时,应用程序的属性是用于在启动和管理应用程序的一个实例 。


属性入口点
(1)EntryPoint Activatable类的ID,如“Office.Winword.Class”。
一个介于1和256个字符长度的字符串。
(2)Executable  可执行文件
应用程序的默认启动的可执行文件。此文件必须在包。
“EXE”结束的长度介于1和256字符的字符串。
标识
(3)Id  独特的标识符(ID),包内的应用。
ID是唯一的包内,但不是全局。有可能是另一个系统上使用相同的ID包。不能使用相同的ID不止一次​​地在同一个包。
一个介于1和64个字符长度的Unicode字符串。
(4)StartPage STARTPAGE
默认启动应用程序的HTML页面。此文件必须在包。
一个介于1和256个字符长度的字符串。
子元素
(1)ApplicationContentUriRules
指定在托管应用程序的系统应用程序的一部分认为,互联网域名和URL方面的应用程序的边界。
子元素
rule 规则 rule{1100}
指定用于确定应用程序边界的标准。
属性  
1 Match  匹配 在规则中使用绝对URL。有关详细信息,请参阅RFC 1738 - 统一资源定位器(URL)。   一个介于1和2084个字符长度的字符串。
2 Type   类型 一个字符串,指定规则是否是一个包含或排除规则。 include  exclude
(2)Extensions (type: CT_ApplicationExtensions)  扩展(类型:CT_ApplicationExtensions)  
定义一个或多个应用程序的可扩展性点。
<Extensions>
  <!-- Child elements -->
  Extension{1,10000}
</Extensions>
1)Extension (in type: CT_ApplicationExtensions) 声明一个应用程序的扩展点。
Declares an extensibility point for the app. 
<Extension Category     = "windows.fileTypeAssociation" | "windows.protocol" | "windows.autoPlayContent" | "windows.autoPlayDevice" |   "windows.shareTarget" | ...
   Executable?  = A string between 1 and 256 characters in length that ends with ".exe".
   EntryPoint?  = A string between 1 and 256 characters in length.
   RuntimeType? = A string between 1 and 255 characters in length.
   StartPage?   = A string between 1 and 256 characters in length. >
  <!-- Child elements -->
  ( FileTypeAssociation
  | Protocol
  | AutoPlayContent
  | AutoPlayDevice
  | ShareTarget
  | SendTarget
  | FilePicker
  | BackgroundTasks
  )?
</Extension>
属性::::::: Category 类型的应用程序扩展点。     windows.fileTypeAssociation
windows.protocol
windows.autoPlayContent
windows.autoPlayDevice
windows.shareTarget
windows.search
windows.filePicker
windows.sendTarget
windows.contactPicker
windows.backgroundTasks
windows.cameraSettings
windows.userTileProvider
windows.printTaskSettings
EntryPoint 入口点
Activatable类ID。
一个介于1和256个字符长度的字符串。
Executable 可执行文件
默认启动的可执行文件。
“EXE”结束的长度介于1和256字符的字符串。
RuntimeType
运行时的供应商。此属性通常用于当有一个应用程序的混合的框架。
长度在1和255之间字符的字符串。
STARTPAGE
处理扩展点的网页。
一个介于1和256个字符长度的字符串。
子元素::::::   具体可参考以下网页  http://msdn.microsoft.com/en-us/library/windows/apps/br211400.aspx
AutoPlayContent
声明类型的应用程序的可扩展性点 windows.autoPlayContent 。该应用程序提供了自动播放指定的内容行动。
AutoPlayDevice
声明类型的应用程序的可扩展性点 windows.autoPlayDevice 。该应用程序提供自动播放指定的设备动作。
BackgroundTasks
定义类型的应用程序的可扩展性点 windows.backgroundTasks。后台任务运行在一个专用的背景主机,也就是说,没有一个用户界面。
FilePicker
声明类型的应用程序的可扩展性点 windows.filePicker 。应用程序的股份或其他应用程序公开指定类型的文件。
FileTypeAssociation
声明类型的应用程序的可扩展性点 windows.fileTypeAssociation 。文件类型关联,表示该应用程序注册到处理指定类型的文件 。
Protocol 协议
声明类型的应用程序的可扩展性点windows.protocol。协议协会表示,该应用程序注册到指定的协议的 URI处理。
SendTarget
声明类型的应用程序的可扩展性点 windows.sendTarget 。应用程序可以指定类型的文件发送到其他应用程序。
ShareTarget
声明类型的应用程序扩展点 windows.shareTarget 。应用程序可以共享指定文件类型 。
(3)VisualElements  描述的新城风格的应用程序的视觉方面。
属性  BackgroundColor   Description    DisplayName   ForegroundText   InitialRotationPreference  Logo    SmallLogo    ToastCapable
InitialRotationPreference    应用程序的初始旋转。
此属性可以有下列值之一:portrait  landscape  portraitAndFlipped  landscapeAndFlipped
ToastCapable  是否提醒  
子元素
DefaultTile  默认瓦表示的应用程序。  属性    ShortName  短名称使用的应用程序。 
ShowName   true if the name of the app is shown with the tile; otherwise, false WideLogo
WideLogo The path to the image that represents the app. The wide log is used if the app requires wide format   tiles and the user hasn't explicitly reduce the tile size.
LockScreen 定义当系统被锁定的应用程序的行为。
<LockScreen Notification = "tileText" | "badge" | "badgeAndTileText"
      BadgeLogo?   = A string between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg". />
SplashScreen 定义应用程序启动时的行为。
<SplashScreen BackgroundColor? = A three-byte hexadecimal number preceded by "#" or a named color: "black" | "silver" |   "gray" | "white" | "maroon" | "red" | "purple" | "fuchsia" | "green" | "lime" | "olive" | "yellow" | "navy" | "blue" | "teal" | "aqua".
                Image            = A string between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg". />


{2}Capabilities 功能   声明包需要保护用户资源的访问。
<Capabilities>
  <!-- Child elements -->
  Capability{0,10},
  DeviceCapability{0,100}
</Capabilities>
属性 (1)DeviceCapability    Declares a device capability required by a package   程序需要的设备
<DeviceCapability Name = A string between 1 and 50 characters in length or a GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. />
属性   Name The name of the device either specified as a friendly name or a device interface class GUID.
设备名称指定为一个友好的名称或设备接口类GUID。
备注
如果名称属性指定一个GUID,然后对其进行验证的GUID。默认情况下,地铁风格的应用程序有打印设备和传感器的访问。要访问其他类型的设备,你必须指定他们使用
的DeviceCapability元素。下表描述了为这些设备提供了友好的名称。


location  位置 Provides access to the user's current location.
microphone  麦克风 Provides access to the microphone's audio feed.
proximity  距离感应 Required for near-field communication (NFC) between devices in close proximity. Near-field proximity may be
used tosend files or connect with an app on a proximate device.
sms 短信  Provides access to PC text messaging functionality.
webcam  摄像头  Provides access to the webcam's video feed.
Other devices (represented by GUIDs) Includes specialized devices and Windows Portable Devices.



    (2)Capability  需要的权限   链接  http://msdn.microsoft.com/en-us/library/windows/apps/br211423.aspx   
<Capability Name = "internetClient" | "internetClientServer" | "privateNetworkClientServer" | "documentsLibrary" | "picturesLibrary" | ... />
internetClient 传出连接到互联网,你的互联网连接。
internetClientServer 你的互联网连接,其中包括从Internet传入的未经请求的连接-应用程序可以通过防火墙发送信息或从您的计算机 。您不需要申报internetClient宣布,
privateNetworkClientServer 家庭或工作网络 - 应用程序可以在同一网络上发送信息,或从您的计算机和其他计算机。
documentsLibrary 您的文档库,包括添加,更改或删除文件的能力。包只能在清单中宣布,它已经访问的文件类型。HomeGroup的计算机上的文档库的应用程序不能访问。
picturesLibrary 您的图片库,包括添加,更改或删除文件的能力。此功能还包括HomeGroup的电脑上的图片库,以及与媒体服务器上的本地连接的图片文件类型。
videosLibrary 您的影片资料库,包括添加,更改或删除文件的能力。此功能还包括HomeGroup的电脑上的视频库,以及与媒体服务器上的本地连接的视频文件类型。
musicLibrary 您的音乐库,包括添加,更改或删除文件的能力。此功能还包括HomeGroup的电脑上的音乐库,以及与媒体服务器上的本地连接的音乐文件类型。
defaultWindowsCredentials 您的Windows凭据,以企业内部网的访问。此应用程序可以在网络上模拟。
removableStorage 可移动存储设备,如外部硬盘驱动器或USB闪存驱动器,或MTP便携设备,包括添加,更改或删除特定文件的能力。这个包只能访问文件类型,它已经在清单中宣布的。
sharedUserCertificates 软件和硬件证书或智能卡 - 用于识别在你的应用程序。此功能可用于识别您的身份由您的雇主,银行,政府服务



{3}Dependencies  依存关系  Declares other packages that a package depends on to complete its software.   声明一个包依赖于完成其软件的其他包。
备注
必须明确定义的依赖关系。如果不能得到解决,一个依赖包的部署失败 。默认情况下,不能采取包上另一个包的依赖包的依赖,如果不被宣布为一个框架包 。框架属性设置为 true ,宣布了一个框架包 
子元素  PackageDependency  Declares a dependency on another package that is marked as a framework package.
<PackageDependency Name        = A Unicode string, between 3 and 50 characters in length.
                    Publisher?  = A string between 1 and than 8192 characters in length.
                    MinVersion? = A version string in quad notation, "Major.Minor.Build.Revision". />
备注
包依赖关系时注意以下几点:
一个包不能有多个具有相同的名称属性的依赖声明 。
如果未指定publisher属性,则必须依赖包未签名的。当一个依赖包是无符号的,它也必须作为一个框架包的标记。见框架元素。
依赖包的主要和次要版本,必须符合这个属性所指定的主要和次要版本。


{4}Extensions 扩展(类型:CT_PackageExtensions) 定义一个或多个包的扩展点。 Defines one or more extensibility points for the package.
子类  Extension (in type: CT_PackageExtensions) Declares an extensibility point for the package.
  <Extension Category = "windows.activatableClass.inProcessServer" | "windows.activatableClass.outOfProcessServer" | "windows.activatableClass.proxyStub" |   "windows.gameExplorer" | "windows.certificates" | ... >
  <!-- Child elements -->
  ( InProcessServer
  | OutOfProcessServer
  | ProxyStub
  | GameExplorer
  | Certificates
  | DigitalRightsManagement
  )
</Extension>


Certificates 属性 1 Certificate  2 SelectionCriteria  3 TrustFlags
Declares a package extensibility point of type windows.certificates. The app requires one or more certificates from the specified certificate stores.
DigitalRightsManagement
Declares a package extensibility point of type windows.digitalRightsManagement.
GameExplorer
Declares a package extensibility point of type windows.gameExplorer.
InProcessServer
Declares a package extensibility point of type windows.activatableClass.inProcessServer. The app uses a dynamic link library (DLL) that exposes
one or more activatable classes.
OutOfProcessServer
Declares a package extension point of type windows.activatableClass.outOfProcessServer. The app uses an executable (EXE) that exposes one or more
activatable classes.
ProxyStub
Declares a package extensibility point of type windows.activatableClass.proxyStub. A proxy can be composed of one or more interfaces.


{5}Identity 身份 http://msdn.microsoft.com/en-us/library/windows/apps/br211441.aspx
定义一个全局唯一标识符为一个包。一个包的身份是代表作为一个包的属性的tuple。
<Identity Name                   = A Unicode string, between 3 and 50 characters in length.
  ProcessorArchitecture? = "x86" | "x64" | "arm" | "neutral"
  Publisher              = A string between 1 and than 8192 characters in length.
  Version                = A version string in quad notation, "Major.Minor.Build.Revision".
  ResourceId?            = A Unicode string between 1 and 30 characters in length. />



{6}Prerequisites 先决条件 声明的最低操作系统和软件要求必须存在的系统适用于包。
<Prerequisites>
  <!-- Child elements -->
  ( OSMinVersion & OSMaxVersionTested)
</Prerequisites>


{7}Properties 属性 定义有关,包括属性,描述了如何包出现用户额外的元数据。\
<Properties>
  <!-- Child elements -->
  ( Framework? & DisplayName& PublisherDisplayName & Description?& Logo)
</Properties>
Description  说明
可以向用户显示一个友好的描述。此字符串本地化。
DisplayName的
可以向用户显示一个友好的名称。此字符串本地化。
Framework  框架
指示包是否是一个框架包;,就是一个可以用来包其他包。
Logo  标志
一个包含图像文件的路径。
PublisherDisplayName
一个友好的,可以向用户显示的出版商的名称。此字符串本地化。


{8}Resources 资源 声明包中包含的资源的语言。每个软件包都必须申报至少一种语言的资源。
<Resources>
  <!-- Child elements -->
  Resource{1,200}
</Resources>


<Resource Language = language />  Language
The language for resources contained in the package. The syntax of this attribute is defined by the IETF's BCP47: Tags for Identifying Languages.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值