How to install XNA 4.0 on VS2012 VS2013 - Noxalus/Lidgren-XNA-4.0-Sample GitHub Wiki
Unfortunately, you have to have VS 2010 installed !
Note that for VS2013, you have to replace "11" by "12"
-
First, install XNA Game Studio 4.0: http://www.microsoft.com/en-us/download/details.aspx?id=23714
-
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"
-
Then, open the file
extension.vsixmanifest
in the latter directory -
Upgrade the Supported product version to match the new version. Change
<VisualStudio Version="10.0">
by<VisualStudio Version="11.0">
. -
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.
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /setup