0

所以我又被搞砸了。我有一个 WP7.1 项目,我添加了一些用于捏合和缩放工具 的代码按上述添加代码后,我开始收到此错误

AppManifest Validation failed. Invalid AppPlatformVersion in WMAppmanifest.xml

现在我检查了 My WPAppManifest.xml(Window Interface),发现默认情况下没有检查任何屏幕分辨率。当我尝试检查(wvga)时,我看到了错误

无法加载设计器,在 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)我想添加这个 我很困惑,如何在我的 App.xaml 中添加第(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>

需要帮助!多谢

4

2 回答 2

0

将项目升级到 Windows Phone 8 意味着一些更改是在内部完成的,而不仅仅是在应用程序清单中。您提到在向项目中添加类后清单中出现了一些错误的唯一事实意味着您可能对清单本身做了一些事情。

首先,Windows Phone 7.1 不支持ActivationPolicy该属性。

如果您决定将 WP 7.1 项目升级到 Windows Phone 8,则需要使用内置升级选项:

在此处输入图像描述

于 2013-01-20T19:50:15.120 回答
-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>
于 2013-01-20T20:39:31.643 回答