Uwp 创建混合现实3D图标时,如何解决package.appxmanifest中的命名空间错误?

Uwp 创建混合现实3D图标时,如何解决package.appxmanifest中的命名空间错误?,uwp,manifest,windows-mixed-reality,Uwp,Manifest,Windows Mixed Reality,我正在尝试在Unity 3D UWP项目中为cliff house添加一个MixedReality 3D图标 因此,我遵循了官方文档(),我的package.appxmanifest现在有以下几行: <Package xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmln

我正在尝试在Unity 3D UWP项目中为cliff house添加一个MixedReality 3D图标

因此,我遵循了官方文档(),我的package.appxmanifest现在有以下几行:

<Package xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4" xmlns:uap5="https://schemas.microsoft.com/appx/manifest/uap/windows10/5" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" xmlns:mobile="http://schemas.microsoft.com/appx/manifest/mobile/windows10" IgnorableNamespaces="uap uap2 uap3 uap4 uap5 mp mobile iot" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">

我已经阅读了文档和官方MS视频,看不出我遗漏了什么?

您的包标签中有不一致的模式URL。除了
https://schemas.microsoft.com/appx/manifest/uap/windows10/5
使用https的地方

因为
uap10/5
uap10
的子代,而且因为您使用
http://schemas.microsoft.com/appx/manifest/uap/windows10
,它需要
http://schemas.microsoft.com/appx/manifest/uap/windows10/5
,而不是
https://schemas.microsoft.com/appx/manifest/uap/windows10/5
用于子元素。(请注意URL中的细微差别。)

这正是您得到的错误:

命名空间“”中的元素“DefaultTile”在命名空间“”中具有无效的子元素“MixedRealityModel”

它告诉您它需要
http

可能元素的列表应为:[……]以及命名空间“”中的“MixedRealityModel”


但是,您不应该将10/5切换到
http
,而应该将其他所有内容切换到
https

谢谢Max,当我更改所有https时,我需要的方向导致了另一个错误,因此我将所有内容都更改为http,效果很好。
<uap:DefaultTile ShortName="Kaldor - Your Public Art Project 2019" Wide310x150Logo="Assets\Wide310x150Logo.png" Square71x71Logo="Assets\Square71x71Logo.png" Square310x310Logo="Assets\Square310x310Logo.png">
  <uap:ShowNameOnTiles>
    <uap:ShowOn Tile="square310x310Logo" />
    <uap:ShowOn Tile="wide310x150Logo" />
  </uap:ShowNameOnTiles>
  <uap5:MixedRealityModel Path="Assets\StoreModel1.glb" />
</uap:DefaultTile>
The element 'DefaultTile' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10' has invalid child element 'MixedRealityModel' in namespace 'https://schemas.microsoft.com/appx/manifest/uap/windows10/5'. List of possible elements expected: 'TileUpdate' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10' as well as 'MixedRealityModel' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/5' as well as 'HoloContentChoice' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10'.