Windows通用应用程序(WIN 10)应用程序清单验证错误

时间:2021-09-30 15:23:52

I found error in Blank app (Windows Universal) template in Visual Studio 2015 RC.

我在Visual Studio 2015 RC中的空白应用程序(Windows Universal)模板中发现错误。

It is some mismatch inside schemas.

模式中存在一些不匹配。

error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 23, Column 4, Reason: Element '{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}TargetDeviceFamily' is unexpected according to content model of parent element '{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}Dependencies'. Expecting: {http:/schemas.microsoft.com/appx/manifest/foundation/windows10}TargetPlatform.

错误0xC00CE014:应用清单验证错误:应用清单必须符合架构:第23行,第4列,原因:元素'{http:/schemas.microsoft.com/appx/manifest/foundation/windows10} TargetDeviceFamily'是意外的根据父元素'{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}依赖关系'的内容模型。期待:{http:/schemas.microsoft.com/appx/manifest/foundation/windows10} TargetPlatform。

Package.appxmanifest:

<?xml version="1.0" encoding="utf-8"?>

<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  IgnorableNamespaces="uap mp">

  <Identity
    Name="a29f94a4-dc5e-4558-9497-90c6190f49ef"
    Publisher="CN=Petr"
    Version="1.0.0.0" />

  <mp:PhoneIdentity PhoneProductId="a29f94a4-dc5e-4558-9497-90c6190f49ef" 
                    PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

  <Properties>
    <DisplayName>App1</DisplayName>
    <PublisherDisplayName>Petr</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>

  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal"
                        MinVersion="10.0.10069.0"
                        MaxVersionTested="10.0.10069.0" />
  </Dependencies>

  <Resources>
    <Resource Language="x-generate"/>
  </Resources>

  <Applications>
    <Application Id="App"
      Executable="$targetnametoken$.exe"
      EntryPoint="App1.App">
      <uap:VisualElements
        DisplayName="App1"
        Square150x150Logo="Assets\Logo.png"
        Square44x44Logo="Assets\SmallLogo.png"
        Description="App1"
        BackgroundColor="#464646">
        <!--ForegroundText="dark"-->
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>

  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>
</Package>      

1 个解决方案

#1


If you are getting this error when deploying the app to your Windows system, it means that you are trying to deploy/install the app package on an older Windows 10 Preview system. Please ensure that you have the Windows 10 version that was publicly announced at //Build.

如果在将应用程序部署到Windows系统时收到此错误,则表示您尝试在较旧的Windows 10 Preview系统上部署/安装应用程序包。请确保您拥有在// Build公布的Windows 10版本。

http://blogs.windows.com/bloggingwindows/2015/04/29/new-windows-10-insider-preview-build-10074-now-available/

#1


If you are getting this error when deploying the app to your Windows system, it means that you are trying to deploy/install the app package on an older Windows 10 Preview system. Please ensure that you have the Windows 10 version that was publicly announced at //Build.

如果在将应用程序部署到Windows系统时收到此错误,则表示您尝试在较旧的Windows 10 Preview系统上部署/安装应用程序包。请确保您拥有在// Build公布的Windows 10版本。

http://blogs.windows.com/bloggingwindows/2015/04/29/new-windows-10-insider-preview-build-10074-now-available/