2015-08-14 85 views
1

我想在Visual Studio 7.1升级我的Windows Phone应用8.0 2015年有当我想调试这是错误唯一的问题的Windows Phone 7.1在Visual Studio 2015年在Windows 10

AppManifest Validation failed. Invalid AppPlatformVersion in WMAppmanifest.xml PhoneApp2 

而且这里是我的manifest.cs

<Application 
    x:Class="PhoneApp2.App" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"> 

    <!--Application Resources--> 
    <Application.Resources> 
    </Application.Resources> 

    <Application.ApplicationLifetimeObjects> 
     <!--Required object that handles lifetime events for the application--> 
     <shell:PhoneApplicationService 
      Launching="Application_Launching" Closing="Application_Closing" 
      Activated="Application_Activated" Deactivated="Application_Deactivated"/> 
    </Application.ApplicationLifetimeObjects> 

</Application>  

做some1知道如何解决这个问题?

+0

这不是您的应用程序清单。这是你的App.xaml。 – BoltClock

+0

我应该如何处理.xaml? – miechooy

回答

0

在代码视图中打开WMAppManifest.xml。根据您的SDK,尝试将以下值 - 2012和8.0更改为适当的值。

<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0"> 
+0

执行此操作后:\t \t命名空间'http://schemas.microsoft.com/windowsphone/2012/deployment'中的元素'Deployment'具有无效的子元素'App'。预期的可能元素列表:'DefaultLanguage'。 \t PhoneApp2 – miechooy

+0

好的,恢复更改。试试这个:右键单击您的Windows Phone项目>>选择属性>>更改应用程序选项卡下的目标手机操作系统版本 – ssakash

+0

Ehh我真的不知道它的“项目必须有AppxManifest项目或内容项名称为AppxManifest.xml '。\t PhoneApp2 \t \t “ – miechooy