pravin
pravin

Reputation: 454

Getting am error in Appmanifest.xml file while build

I am porting the unity game in windows store game so have generated the windows store build from unity4.2.2 when i build the unity build solution from visual studio 2013 on windows 8.1 platform (retargetted the solution to 8.1 ) i am getting error at following line in 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>Assets\StoreLogo.png</Logo>
     </Properties>

following are the errors and warnings i am getting

Error 1 File content does not conform to specified schema. The 'Name' attribute is invalid - The value 'FIR_gameA2' is invalid according to its datatype 'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - The Pattern constraint failed. E:\Windows Games Store\firshootXAMLC#\SAB Ka Shoot\bin\ARM\Debug\AppxManifest.xml 10 13 SAB Ka Shoot Warning 2 The 'Name' attribute is invalid - The value 'FIR_gameA2' is invalid according to its datatype 'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - The Pattern constraint failed. E:\Windows Games Store\firshootXAMLC#\SAB Ka Shoot\bin\ARM\Debug\AppxManifest.xml 10 19 Miscellaneous Files Warning 3 The element 'Package' in namespace 'http://schemas.microsoft.com/appx/2010/manifest' has invalid child element 'Metadata' in namespace 'http://schemas.microsoft.com/developer/appx/2012/build'. E:\Windows Games Store\firshootXAMLC#\SAB Ka Shoot\bin\ARM\Debug\AppxManifest.xml 71 4 Miscellaneous Files

Upvotes: 0

Views: 5094

Answers (1)

Nate Diamond
Nate Diamond

Reputation: 5575

According to the Package manifest schema reference entry on Identity:

Name

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

Remarks

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--"

Your Name include the 'underscore' character _ (U+005F), which is not a valid character. Remove it, possibly replacing it with either the Dash - or Dot..

Hope this helps and happy coding!

Upvotes: 1

Related Questions