如何让我的 Windows Phone 7 应用程序显示在 Windows Phone 8 市场中? [英] How do I get my Windows Phone 7 app to show up in the Windows Phone 8 marketplace?

查看:33
本文介绍了如何让我的 Windows Phone 7 应用程序显示在 Windows Phone 8 市场中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建时一定是做错了什么.我希望我的当前更新适用于 Windows Phone 7 和 Windows Phone 8.我使用的是 WP8 SDK 并针对 OS 8.

I must be doing something wrong when I'm doing my builds. I want my current update to be available for Windows Phone 7 and Windows Phone 8. I am using the WP8 SDK and targeting OS 8.

当我上传我的 XAP 时,我得到了 AnyCPU.xap,现在我的应用程序只能在 WP8 上使用.我怎样才能让它在 WP7 上也可用?

When I upload my XAP I get the AnyCPU.xap and now my app is only available on WP8. How can I make it available on WP7 as well?

推荐答案

DevCenter 和 WP 运行时的工作方式如下:

DevCenter and the WP runtime works as following:

  • 您可以拥有一个 WP7 XAP,并且可以在 WP7 和 WP8 上运行.
  • -或- 您可以拥有一个用于 WP7 的 XAP 和一个(或多个)用于 WP8 的 XAP.或更多"部分用于多种分辨率.

但是,没有办法把在VS2012编译的WP8项目拿来在WP7上运行.您不能在 WP7 上运行 WP8 XAP.一旦我们考虑它,这很明显,因为 WP8 中使用的程序集在 WP7 上不可用.

However, there's no way to take a WP8 project compiled in VS2012 and run it on WP7. You can't run WP8 XAPs on WP7. That's pretty obvious once we think about it since the assemblies being used in WP8 aren't available on WP7.

因此,开发人员必须选择适用于其应用的跨 WP7 和 WP8 的代码共享模型:

So, developers have to choose which code sharing model across WP7 and WP8 works for their app:

  1. 如果您的应用仅使用 WP7 功能集并且在 WP8 HD 上看起来不错,请使用 WP7 XAP.

  1. if your app only uses WP7 featuresets and looks OK on WP8 HD, use a WP7 XAP.

如果您的应用仅部分使用 WP8 功能集,请在 WP7 XAP 上创建,并共享代码库以创建可使用 WP8 功能集的 WP8 XAP.

If your app only partially uses WP8 featuresets, create on WP7 XAP, and share the codebase to create WP8 XAP that lights-up with WP8 featursets.

如果您的应用程序必须具有 WP8 功能集(例如 NFC 或以蓝牙为中心的应用程序等),那么您显然不能以 WP7 为目标,只能提交 WP8 XAP.

And if your app must have WP8 featuresets (e.g. NFC or Bluetooth centric apps, etc) then you obviously can't target WP7 and can only submit WP8 XAPs.

这是一个打印屏幕,演示了 DevCenter 支持在不同平台版本和不同分辨率上为同一应用提交多个 XAP:

Here's a print screen demoing the DevCenter support for submitting multiple XAPs for the same app on different platform versions and different resolutions:

有关如何同时定位 WP7 和 WP8 的更多信息,请参阅 这篇诺基亚开发者文章.文章解释了如何在 WP7 和 WP8 之间在运行时共享代码 &编译时间,WP8 独有哪些新功能以及如何支持多种分辨率.我帮助撰写了那篇文章,希望您会发现它有用.有很多有用的技术可能并不明显.

For more information on how to target both WP7 and WP8 see this Nokia developer article. The article explains how to share code between WP7 and WP8 at runtime & compile time, what new features are WP8 exclusive and how to support multiple resolutions. I helped author that article so hopefully you'll find it useful. There's lots of helpful techniques that might not be obvious.

这篇关于如何让我的 Windows Phone 7 应用程序显示在 Windows Phone 8 市场中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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