所以我再次被搞砸了。我有一个WP7.1项目,我为Pinch And Zoom Facility添加了一些代码 添加代码后,我开始获取此错误
AppManifest Validation failed. Invalid AppPlatformVersion in WMAppmanifest.xml
现在我检查了我的WPAppManifest.xml(Window Interface),发现默认情况下没有选中任何屏幕分辨率。当我试图检查(wvga)时,我看到了错误
Designer无法加载,在XML视图中打开以修复
我的WPManifest看起来像这样(前几行)
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<App xmlns="" ProductID="{60d84a47-d758-4f91-8111-0bd47bb9a6c0}" Title="Effects" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="AviaryDemo author" Description="Sample description" Publisher="AviaryDemo">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_MEDIALIB" />
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_ISV_CAMERA" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml"/>
</Tasks>
2)我想添加this 我很困惑,如何在我的App.xaml中添加点no(7),看起来像这样
<Application
x:Class="AviaryDemo.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:h="clr-namespace:AviaryDemo"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">
<!--Application Resources-->
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/AviarySDK;component/Themes/generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
<resources:Images xmlns:resources="clr-namespace:AviarySDK.Resources;assembly=AviarySDK" x:Key="ImageResources"/>
<aviary:LocalizedStrings xmlns:aviary="clr-namespace:AviarySDK;assembly=AviarySDK" x:Key="LocalizedStrings" />
</ResourceDictionary>
</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>
需要帮助!非常感谢
答案 0 :(得分:0)
将项目升级到Windows Phone 8意味着某些更改是在内部完成的,而不仅仅是在应用清单中。您提到在向项目添加类之后清单中出现了一些错误的唯一事实意味着您可能已经对清单本身做了一些事情。
首先,Windows Phone 7.1不支持ActivationPolicy
属性 。
如果您决定将WP 7.1项目升级到Windows Phone 8,则需要使用内置升级选项:
答案 1 :(得分:-1)
您的AppPlatformVersion读取“7.1”。不应该是8.0?
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
<DefaultLanguage xmlns="" code="en-US" />
<App xmlns="" ProductID="{30975ea2-5c89-4e55-8d5a-a4292a6e4890}" Title="PhoneApp1" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="PhoneApp1 author" Description="Sample description" Publisher="PhoneApp1" PublisherID="{7f9f8c45-61d1-486a-9d02-4d7a2f563445}">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
<Capabilities>