XNA in Visual Studio 2005 Professional
Posted by Andrew O'ConnorI’d be pretty confident that most people know this already but I thought I’d throw it up here for lack of anything better to blog about, and for posterity of course. As all you XNA’ers out there know, you need Visual C# Express installed to use Game Studio Express, and Visual Studio 2005 professional doesn’t recognize the XNA project type. This sucks a lot of b*lls because it means you can’t use all of your funky productivity tools that you’ve come to depend on, you Resharper junkie you, because you’re stuck in C# Express.
As it turns out though, the only thing you really need Game Studio Express for is deploying to your Xbox, and for the content pipeline stuff, which incidentally is pretty cool. Create your projects as normal in professional, and add references to the Microsoft.Xna.Framework and Microsoft.Xna.Framework.Game assemblies, and you’re good to go. For the content you can create a seperate normal XNA project in express that will solely be used for compiling your content. To make your life easy, modify the output directory in your project properties to point to your game projects bin directory.
When it comes time to deploy your game to the 360 you can change the games project file so that it looks like an XNA project again. Open the csproj file and add the line
<ProjectTypeGuids>{9F340DF3-2AED-4330-AC16-78AC2D9B4738};
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
below the ProjectGuid tag. Then open your sln file and change the line # Visual Studio 2005 to # Visual C# Express 2005. The solution should now open in Game Studio Express and you can deploy away.













