WP7.1向后兼容 [英] WP7.1 backward compatibility

查看:124
本文介绍了WP7.1向后兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在计算机上安装了芒果SDK,我想创建一个在Windows Phone OS 7.0和Windows Phone OS 7.5设备上均可运行的应用程序.我还需要在同一应用程序中实现许多芒果功能.是否有可能 ?如果是,请告诉我如何进行版本检查,因为基于版本,我们需要实现芒果功能.

I have installed mango SDK in my machine and I want to create an application which runs on both Windows Phone OS 7.0 and Windows Phone OS 7.5 devices. Also I need to implement many of the mango features in the same application. Is it possible ? if yes please tell me how to do the version checking, because based on the version we need to implement the mango features.

推荐答案

您将必须维护两个不同的版本.您不能同时编译一个同时支持两个版本的XAP.

You'll have to maintain two different versions. You can't compile one XAP that supports both versions at the same time.

Mango API仅在使用7.1 SDK进行编译时可用.因此,您无法在代码中进行内联检查.

The Mango APIs are only available when compiling with the 7.1 SDK. And as such, you can't do in-line checking in the code.

但这是没有意义的,因为几乎没有用户没有升级到Mango,并且所有新手机都随Mango一起提供.

But it's rather pointless, as there's almost no users left that haven't upgraded to Mango, and all new phones ship with Mango.

这篇关于WP7.1向后兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆