在构建Appmanifest.xml文件时出现错误



我正在将unity游戏移植到windows商店游戏中,因此从unity4.2.2生成了windows商店构建,当我在windows 8.1平台上从visual studio 2013构建unity构建解决方案(将解决方案重新定位到8.1)时,我在AppManifest.xml

中得到以下行错误
    <?xml version="1.0" encoding="utf-8"?>
    <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest"    xmlns:build="http://schemas.microsoft.com/developer/appx/2012/build" IgnorableNamespaces="build">
  <Identity Name="FIR_gameA2" Publisher="CN=circ" Version="1.0.0.0"ProcessorArchitecture="arm" />
     <Properties>
    <DisplayName>SHOOT</DisplayName>
      <PublisherDisplayName>circ</PublisherDisplayName>
     <Logo>AssetsStoreLogo.png</Logo>
     </Properties>

下面是我得到的错误和警告

错误1文件内容不符合指定的模式。"名字"属性无效-值'FIR_gameA2'根据其数据类型'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - The模式约束失败。E:Windows Games StorefirshootXAMLC#SABKa ShootbinARMDebugAppxManifest.xml 10 13 SAB Ka Shoot警告2"Name"属性无效-值"FIR_gameA2"是根据其数据类型无效'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - The模式约束失败。E:Windows Games StorefirshootXAMLC#SABKa ShootbinARMDebugAppxManifest.xml 10 19杂项文件元素"Package"在命名空间中"http://schemas.microsoft.com/appx/2010/manifest"有无效的子节点元素'Metadata'在命名空间中"http://schemas.microsoft.com/developer/appx/2012/build"。E: Windows游戏商店firshootXAMLC#SAB KaShootbinARMDebugAppxManifest.xml 71 4杂项文件

根据Package manifest schema reference entry on Identity:

名称

 string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.

评论

Important  
For the Name and ResourceID strings, the following rules must be followed:
Allowed Input Characters = ASCII subset
    Uppercase letters (U+0041 thru U+005A)
    Lowercase letters (U+0061 thru U+007A)
    Numbers (U+0030 thru U+0039)
    Dot (U+002E)
    Dash (U+002D)
Prohibited Strings
    Cannot equal…
        ".", "..", "con", "prn", "aux", "nul", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9"
    Cannot begin with…
        "con.", "prn.", "aux.", "nul.", "com1.", "com2.", "com3.", "com4.", "com5.", "com6.", "com7.", "com8.", "com9.", "lpt1.", "lpt2.", "lpt3.", "lpt4.", "lpt5.", "lpt6.", "lpt7.", "lpt8.", "lpt9.", "xn--"
    Cannot end with…
        "."
    Cannot contain…
        ".xn--"

您的Name包含'下划线'字符_ (U+005F),这不是一个有效的字符。删除它,可能用划线-或点号.替换它。

希望这有助于和快乐的编码!

相关内容

最新更新