Windows Phone 7 Console Window on 64 bit machine

A while ago as part of my post http://nicksnettravels.builttoroam.com/post/2010/07/24/Howe28099s-my-Windows-Phone-7-application-being-used-Getting-started-with-the-Microsoft-Silverlight-Analytics-Framework-for-Windows-Phone-development.aspxdiscussed how you can enable the console window for the Windows Phone 7 emulator. Since I upgraded my machine to 64bit windows I haven’t got around to enabling the console window but today I decided to give it a shot. Now my previous post stated that you just needed the following registry entry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\XDE]
"EnableConsole"=dword:00000001

However, this wasn’t working for me…. and actually the XDE key didn’t even exist. Of course, I’m running a 64 bit machine and a lot of the Windows Phone 7 SDK runs in 32 bit mode. Doh! should have realised that of course I’d need to alter the registry key to the following (note the additional Wow6432Node key)

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\XDE]
"EnableConsole"=dword:00000001

Now I can run the console window and write to it using Console.WriteLine (as an alternative to Debug.WriteLine which appears in the Visual Studio debug Output window).

eg Console.WriteLine("Application Loaded");

image

转载于:https://www.cnblogs.com/promise-7/archive/2012/09/27/2705258.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值