zoukankan      html  css  js  c++  java
  • 在win2008R2中安装WP7开发工具

    又折腾了很长时间,记录于下:

    百度得此文章http://www.cnblogs.com/yjmyzz/archive/2011/04/15/2017564.html
    感谢作者

    以下为引用:

    打开c:\wp7\baseline.dat文件,找到[gencomp7788]这个节点,将下面的内容修改如下:
    [gencomp7788]
    BlockorWarn=1
    CleanCost=0
    CommandLine=blocker.exe
    ComponentType=1
    DetectKey=
    DetectKeyVal=
    DetectKeyValData=
    EncryptionOpt=0
    EstInstallTime=0
    Executable=sp.exe
    IgnoreLaterVersions=1
    GFN=GFN_MID Block on all OS except Vista and Win7
    HelpLink=WPDT_OSRequirements.htm
    InstallOnAMD64=1
    InstallOnFutureNT=1
    InstallOnVista=0
    InstallOnWin7=0
    InstallOnLHS=1
    InstallOnIA64=0
    InstallOnNetServer=0
    InstallOnWin2k=0
    InstallOnWinNT4=0
    InstallOnWinXP=0
    InstallOnx86=1
    InstallOnWin7Server=0
    LangSensitive=optional
    moduleid=61862971-5445-44AE-87AE-3EA15736F848
    Reboot=0
    RebootLaterOk=1
    ReturnType=IeReturnCheck
    Uninstall=0
    VersionCheck=Blocker

     注:大家可以根据自己机器操作系统的实际情况做相应调整,比如要在xp上安装,就应该是把InstallOnWinXP=1改成InstallOnWinXP=0



    好了,可以安装上了。安装的时间非常长,耐心等待。

    如果之前装了完全版的VS2010,也可以不用那个Express版本,在你安装VS2010的目录下找到Common7\IDE\ProjectTemplates\CSharp\Silverlight for Windows Phone找到1033目录,复制一份改名为2052,然后执行在开始菜单VS2010目录下找到Visual Studio Tools中Visual Studio 命令提示(2010),右键点击以管理员身份运行,然后直接执行devenv /installvstemplates
    等一段时间处理完了,打开visual studio 2010就应该可以看到wp7的模板了。

    但还有一个问题,在我的台式机上无法启动调试。模拟器一直停留在一个windows phone emulator is doing a complete os boot 黑屏窗口,就进不去了。但搜索后发现也有在2008R2上开发的,那应该还是可以的。中间抓狂的过程就不提了,恢复系统、重新安装……后来又搜到这个地址:http://forums.create.msdn.com/forums/p/68634/525797.aspx
    提到有关hyper-v的问题:

    Re: Windows phone emulator is doing a complete OS boot...

     
     Imperial Dynamics:
    a few days ago i enabled Hardware Virtualization in my laptop's BIOS settings. I believe the problem in my case may have something to do with conflict between that and the emulator's VM


    My suspicion was correct. I rebooted my HP laptop, entered BIOS, disabled hardware virtualization, and now it starts the phone emulator instantly every time. Too bad i cannot run Windows 8 in VirtualBox anymore :(


    我的电脑也是装了hyper-v的,马上重启电脑进BIOS关闭硬件虚拟化,再运行模拟器,终于正常载入了。可能模拟器与硬件虚拟化有冲突吧。


    中间还有段时间想装在hyper-v的win7里,结果装的时候死机n次,无奈放弃了。

  • 相关阅读:
    蓝桥杯 历届试题 带分数
    Myeclipse 操作数据库
    HDU 1007Quoit Design(最近点问题)
    java坦克大战源码下载
    蓝桥杯 历届试题 九宫重排
    Ueditor的配置和使用
    java 显示透明背景png图片
    mysql数据库移植
    错误:document.getElementById("userForm").submit();Object is not a function
    jsp获得文件的绝对路径
  • 原文地址:https://www.cnblogs.com/yanxiaodi/p/2296456.html
Copyright © 2011-2022 走看看