方法一:来自网络
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"
再进行安装!