Is it possible to create XNA games using Visual Studio 2012?
How to install XNA game studio on Visual Studio 2012
visual studio 2012xna
Related Topic
- How to switch themes in Visual Studio 2012
- How to disable all caps menu titles in Visual Studio
- Visual-studio – Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview
- Asp.net-mvc – Visual Studio debugging/loading very slow
- C# – How to install the XNA Game Studio 4.0 in Windows 8
- Asp.net-mvc – How to open an old MVC project in Visual Studio 2012 or Visual Studio 2013
- C# – ReSharper “Cannot resolve symbol” even when project builds
- How to install ASP.NET MVC 5 in Visual Studio 2012
Best Answer
Yes, it's possible with a bit of tweak. Unfortunately, you still have to have VS 2010 installed.
First, install XNA Game Studio 4.0. The easiest way is to install the Windows Phone SDK 7.1 which contains everything required.
Copy the XNA Game Extension from VS 10 to VS 11 by opening a command prompt 'as administrator' and executing the following (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"
Run notepad as administrator then open
extension.vsixmanifest
in the destination directory just created.Upgrade the Supported product version to match the new version (or duplicate the whole
VisualStudio
element and change theVersion
attribute, as @brainslugs83 said in comments):Don't forget to clear/delete your cache in %localappdata%\Microsoft\VisualStudio\12.0\Extensions.
You may have to run the command to tells Visual Studio that new extensions are available. If you see an 'access denied' message, try launching the console as an administrator.
This has been tested for Windows Games, but not WP7 or Xbox games.
[Edit] According Jowsty, this works also for XBox 360 Games.
[Edit for Visual Studio 2013 & Windows 8.1] See here for documentation on installing Windows Phone SDK 7.1 on Windows 8.1. Use VS version number 12.0 in place of 11.0 for all of these steps, and they will still work correctly.