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

问题描述:

我在Visual Studio 2015 RC中的空应用程序(Windows通用)模板中发现错误。Windows通用应用程序(WIN 10)应用程序清单验证错误

这是模式内部的一些不匹配。

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.

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>  

如果您收到部署应用程序到Windows系统时,这个错误,这意味着你正在尝试部署/上一个老版本的Windows安装程序包10预览系统。请确保您拥有在// Build上公布的Windows 10版本。

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