在vs 2012 中使用xna 4.0 做开发!

 

期待已久的vs 2012 终于发布了,做为xna 的忠实开发者,xna的studio 还没同步发布。只能说很郁闷!还好我运气好,在vs 2012中成功的安装上了xna studio 4.0,想要在vs 2012 中使用全用xna 做开发,还是遇到一些小问题,问题是怎样把xna 4.0 studio加入在VS 2012 中,

有两个方法, GOOD LUCK!

 方法一:来自网络

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"

再进行安装!

为什么我们用得好好的vs 2010要换到vs 2012呢。因了vs 2012更新。打开更快。占用资源更少,新特性更多! 

 

 一些网友的遇到的问题和解决方法:

1、使用了第二个方案,还是不能安装成功!

     去 %LocalAppData%\Microsoft\VisualStudio\11.0\Extensions 这里把两个.cache文件改名或删除 重启vs11

 

如果有问题。请与我联系!QQ:371741579,也可以加入系统架构师群讨论:57230994

posted @ 2012-08-19 13:45  czjone  阅读(6431)  评论(4编辑  收藏  举报