VS2012中安装XNA方法

方法一:来自网络

Yes, it's possible with a bit of tweak. Unfortunately, you still have to have VS 2010 installed.
  1.First, install XNA Game Studio 4.0. The easiest way is  to install the Windows Phone SDK 7.1 which contains everything required.
  2.
Copy the XNA Game Extension from  VS 10 to VS 11 using  (may vary if  not x64 computer with defaults paths) :
 
xcopy /e "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0"  "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0"
 
  3.
The, open the file extension.vsixmanifest in  the later directory
 
  4.Upgrade the Supported product version to match the new  version :
  
--------------------------------------------------------------------------------
<SupportedProducts>
   <VisualStudio Version= "11.0" >
     <Edition>VSTS</Edition>
     <Edition>VSTD</Edition>
     <Edition>Pro</Edition>
     <Edition>VCSExpress</Edition>
     <Edition>VPDExpress</Edition>
   </VisualStudio>
</SupportedProducts>
 
--------------------------------------------------------------------------------
 
  This have been tested for  Windows Games. Neither XBox nor WP7 game have been tested.

  

 方法二:在vs 2012 和vs 2010共存的情况下。以前已安装过xna 4.0到vs 2010,使用修复来安装。(没有安装过vs 2010的情况没有做过测试。自己可以去试一下。也是可以用的),在安装完成后会有一个错误提示。直接点【完成】就可以了!然后打开vs 2012,和vs 2010的情况是一样的。开发环境就搭建好了!

如果没有安装上的,请安支行一下

xcopy /e "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0"

再进行安装!

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值