VS2010安装Windows Phone SDK后不能在VS2008下调试Windows Mobile的解决方法

by shinichi_wtn 2012-01-18 20:53

由于Visual Studio 2010不能开发Windows Mobile以及Windows CE,所以必须要在电脑上安装VS2008。但是当我同时安装了Windows Phone SDK和Windows Mobile SDK后,发现在Visual Studio下无法调试Windows Mobile的项目,提示"Unable to start debugging",而在Visual Studio 2010下调试Windows Phone的项目就没问题,很是奇怪。

后来上网找到了答案,这个现象的确是存在的,并且微软官方给出了解决方法如下(参见这里):

1. 找到VS2008和VS2010各自的安装目录,这里以C盘为例,将C:\Program Files\Microsoft Visual Studio 10.0\SmartDevices\Debugger\target\wce400\armv4i这个目录重名为armv4i_temp。
2. 拷贝C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\Debugger\target\wce400\armv4i这个文件夹到VS2010刚才那个目录即可

当然,这个解决办法并不是完美的,如果我们要调试Windows Phone的程序,必须将armv4i_temp重新换回armv4i,否则会出现同样的"Unable to start debugging"错误。

(仅用于Gavatar)

  Country flag

biuquote
  • Comment
  • Preview
Loading

About

shinichi_wtnI'm Shinichi_wtn

Software Engineering Manager at Microsoft

[More...]


Month List