2

I installed XNA 4.0 and used this method: How to install XNA game studio on Visual Studio 2012? to access XNA in vs2012.(I installed VC# 2010 express first.) Everything went fine, I could even open XNA game project and ran. But the new project menu did not show the Windows Game and Xbox360 Game option. Why are they missing?

enter image description here

Community
  • 1
  • 1
Sean C.
  • 1,494
  • 1
  • 13
  • 22
  • Included the image for you – jessehouwing Jan 07 '14 at 21:23
  • 1
    Did not work for me either. I'd suggest you move to MonoGame since XNA is really dead, or stick with VS2010 to get a stable XNA version. – Pierre-Luc Pineault Jan 07 '14 at 21:23
  • 1
    I agree with @Pierre-LucPineault - XNA is beyond defunct, and MonoGame is a great alternative. However, you can try creating the solution in VS2010, then open it in VS2012 and go from there (the projects are forward compatible). – 3Dave Jan 07 '14 at 21:27
  • I just installed XNA in VS 2013 (Same process) last weekend using the steps in that question and it worked fine. – Cyral Jan 07 '14 at 22:57
  • @Pierre-Luc Pineault ,@David Lively . I have monoGame installed. But monoGame does not have content pipeline right? Do I still need the XNA to generate Content then move it right to monoGame? – Sean C. Jan 08 '14 at 03:50

2 Answers2

2

XNA is officially only supported on Visual Studio 2010.

XNA Game Studio 4.0 Refresh leverages the Microsoft Visual Studio 2010 development environment, extending it for game development. XNA Game Studio 4.0 Refresh works with any of the following Microsoft Visual Studio 2010 products.

  • Microsoft Visual Studio 2010 Express for Windows Phone
  • Microsoft Visual C# 2010 Express Edition
  • Microsoft Visual Studio 2010 Professional Edition

http://msdn.microsoft.com/en-us/library/bb203916.aspx

There are some tricks to "tweak" the XNA templates to work in Visual Studio 2012 and 2013.

  • (For Windows 8 users) Install Games for Windows Live client. You just need to install it, no further input is required.
  • Install Visual Studio 2013 or 2012
  • Install Windows Phone SDK 7.1
    • This will install VS 2010 Express for Windows Phone and, with it, XNA
    • If by some reason the XNA installation fails, reinstall
    • Alternatively, you can install any Visual Studio 2010 and XNA standalone
  • Copy XNA from VS2010 to VS2013
  • Copy the folder named XNA Game Studio 4.0 from “C:\Program Files (x86)\Microsoft Visual Studio 10.0\common7\ide\extensions\Microsoft” to
    • For VS2013 C:\Program Files (x86)\Microsoft Visual Studio 12.0\common7\ide\extensions\Microsoft
    • For VS2012 C:\Program Files (x86)\Microsoft Visual Studio 11.0\common7\ide\extensions\Microsoft
  • Open the extension.vsixmanifest file with your favourite text editor (with Administrator privileges), inside the copied XNA Game Studio 4.0 folder
  • Change the supported Visual Studio version
    • Change this: <VisualStudio Version=”10.0″> to
      • For VS2013: <VisualStudio Version=”12.0″>
      • For VS2012: <VisualStudio Version=”11.0″>
  • Tell VS to rebuild the Extensions cache
    • Run this command (Win+R):
      • For VS2013 “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe” /setup
      • For VS2012 “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe” /setup
    • If you get an error doing this, run it in a Command Prompt with Administrator privileges
    • This isn’t always necessary, specially if you have just installed Visual Studio

http://dementedvice.wordpress.com/2013/10/21/let-me-explain-install-xna-on-visual-studio-2013-and-2012/

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
  • They do work in the express editions, I have installed it numerous times in them. You have to add "WDExpress" as a version and replace `devenv.exe` as seen in the guide to install XNA with VS2012 with `WDExpress.exe` – Cyral Jan 07 '14 at 22:59
0

I reinstalled and it's fixed. I think it's the installation path that causes this problem. VS2010 and VS2012 should be installed on the same disk. I have VS2012 installed on D:\Program Files (x86)\Microsoft Visual Studio 11.0 and VS2010 reinstalled on D:\Program Files (x86)\Microsoft Visual Studio 10.0 not the default C:\Program Files (x86)\Microsoft Visual Studio 10.0. Then install and copy XNA with the same old trick. Don't know why is that but it works like a charm. MonoGame is fine but it still needs support from XNA Content pipeline.

Sean C.
  • 1,494
  • 1
  • 13
  • 22