Visual Studio 2012 and Microsoft XNA Game Studio

Ryan Lange has provided a handy guide how to get XNA studio projects to run in Visual Studio 2012. But this is on the proviso you already have Microsoft XNA Game Studio already installed on the machine.

I had a clean machine with a VS 2012 install, and as I soon found out, installing XNA game studio is no trivial matter. The 43 MB XNA Game Studio has a dependency on Visual C# 2010 Express, which in turn installs SQL Server Express and a load of junk that threatens to use 898 Mb of disk space.

Luckily, I already had XNA Game Studio installed on another machine, and the process was reasonably straightforward.

  1. Copy the files from C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0
  2. Make the following Registry Entry (required for BuildXAct task):Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\XNA\Game Studio\v4.0]
    “InstallPath”=”C:\\Program Files (x86)\\Microsoft XNA\\XNA Game Studio\\v4.0”

  3. Copy the files from C:\Program Files (x86)\MSBuild\Microsoft\XNA Game Studio
  4. Register the XNA assemblies in the GAC using gacutil
    cd C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86
    gacutil /i Microsoft.Xna.Framework.Avatar.dll
    REM repeat for each of the DLL in this directory
  5. I’m not sure if this is entirely necessary – Run the Redistributable MSI in
    C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\Redist\XNA FX Redist\xna_fxredist.msi

And that was about it. I was able to compile StarWarrior from Artermis Entity Component Framework.

Let me know if you find anything else.

One Comment

Comments are closed.