MVVMLight和WP7 RTM [英] MVVMLight and WP7 RTM

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

问题描述

在WP7 Beta之前可以使用的MVVMLight版本是否可以在WP7 RTM上使用?

Does the MVVMLight version that worked before with the WP7 Beta work with WP7 RTM?

推荐答案

可以,但是仍然存在一个陷阱.

It sure does, but the one gotcha that still exists.

如果您正在使用模板,是因为它不会唯一地设置ProductID.尽管您往往看不到模拟器上出现此问题,但由于设备与什么应用程序混淆,在实际设备上可能会导致大问题.

If you're using the templates, is that it doesn't set the ProductID uniquely. While you tend not to see this problem pop up on the emulator, it can cause big problems on an actuall device as the device get's confused with what application is what.

要解决此问题,请打开Properties \ WMAppManifest.xml文件,然后在App元素上修改ProductID属性.最简单的方法是创建一个虚拟的WP7项目(非MVVMLight)并从那里复制ProductID.

To fix the problem, open up the Properties\WMAppManifest.xml file and modify the ProductID attribute on the App element. The easiest way to do this is to create a dummy WP7 Project (non-MVVMLight) and copy the ProductID from there.

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

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