【发布时间】:2014-04-23 18:59:24
【问题描述】:
我正在将统一游戏移植到 Windows 商店游戏中,因此当我在 Windows 8.1 平台上从 Visual Studio 2013 构建统一构建解决方案时,我从 unity4.2.2 生成了 Windows 商店构建(将解决方案重新定位到 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>Assets\StoreLogo.png</Logo>
</Properties>
以下是我收到的错误和警告
错误 1 文件内容不符合指定的架构。名字' 属性无效 - 值“FIR_gameA2”无效,根据 它的数据类型 'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - 的 模式约束失败。 E:\Windows 游戏商店\firshootXAMLC#\SAB 嘉射\bin\ARM\Debug\AppxManifest.xml 10 13 SAB 嘉射 警告 2 “名称”属性无效 - 值“FIR_gameA2”为 根据其数据类型无效 'http://schemas.microsoft.com/appx/2010/manifest:ST_PackageName' - 的 模式约束失败。 E:\Windows 游戏商店\firshootXAMLC#\SAB Ka Shoot\bin\ARM\Debug\AppxManifest.xml 10 19 其他文件 警告 3 命名空间中的元素“包” 'http://schemas.microsoft.com/appx/2010/manifest' 有无效的孩子 命名空间中的元素“元数据” 'http://schemas.microsoft.com/developer/appx/2012/build'。 E:\Windows 游戏商店\firshootXAMLC#\SAB Ka Shoot\bin\ARM\Debug\AppxManifest.xml 71 4个杂项文件
【问题讨论】:
-
您是否尝试过从
Name="FIR_gameA2"**中的<Identity />中删除**? -
** 是格式化的一部分...它不在我的代码中
-
但是为什么它在双引号之外?
-
我已经编辑了代码......这是实际的代码。
-
去掉
**后尝试编译。
标签: c# xml visual-studio windows-store-apps