Windows Phone 7.1 in Visual Studio 2015 on Windows 10

本文关键字:Windows 2015 on Studio in Phone Visual | 更新日期: 2023-09-27 18:08:03

我想在Visual Studio 2015中将我的windows phone应用程序7.1升级到8.0。唯一的问题是,当我想调试这是错误

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>      

有人知道如何解决这个问题吗?

Windows Phone 7.1 in Visual Studio 2015 on Windows 10

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

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