Click here to Skip to main content
Click here to Skip to main content

Getting XNA 2.0 to work with Visual Studio 2008

, 9 Mar 2008
Rate this:
Please Sign up or sign in to vote.
How to get XNA 2.0 working with Visual Studio 2008 without installing anything other than XNA 2.0.

Introduction

Last week, I wanted to start using the XNA framework in my C# applications, but found out it doesn't work with Visual Studio 2008. Here is how to solve that problem without installing anything other than XNA 2.0:

  1. Download XNA Game Studio 2.0.
  2. Extract the contents of this file using an archive software of your choice.
  3. From the extracted files, first install redists.msi and then xnags_shared.msi.
  4. Create a new Visual Studio project such as a Windows Forms Application, Class Library, etc.
  5. Add a reference to the XNA framework you want to use in your project.
  6. Go to project properties, and set the target platform to x84, since as of now, XNA isn't supported on 64 bit platforms.

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

LightTD
EA BioWare
Canada Canada

Comments and Discussions

 
GeneralHelp with importers Pinmemberquintas_arias18-Sep-08 15:39 
Hello, I commented earlier and thought some of the harsh comments were unfounded. This works just as explained. I was wondering though, seeing that you figured this out if you could help me with one thing. The importers do not seem to work. I can't get the .fbx or .x files to convert and import as .xnb. I have googled and searched but to no avail. I did notice that on VS2005 that when you click on one of these files that in the property page there are two things that are not there in VS2008. Content Importer and Content Processor. In 2008 they are Custom Tool and Custom tool namespace. Because of this if you choose build action of complile you get an error in VS2008, but without that the file does not get converted and imported. Just thought you might have an idea. Everything else works great. I'm thinking even if I can't get it to work I am still going to use the framework, I'll just use it with DX9. Thanks in advance.
GeneralExcellent Pinmemberquintas_arias17-Sep-08 12:51 
GeneralRe: Excellent PinmemberLightTD17-Sep-08 13:09 
GeneralXNA vs Managed DirectX Pinmemberanhldbk20-Aug-08 15:02 
GeneralRe: XNA vs Managed DirectX PinmemberLightTD20-Aug-08 16:19 
GeneralRe: XNA vs Managed DirectX Pinmemberanhldbk20-Aug-08 16:48 
NewsXNA 3.0 PinmemberAmrykid3-Jun-08 11:52 
GeneralRe: XNA 3.0 PinmemberLightTD3-Jun-08 15:32 
GeneralRe: XNA 3.0 PinmemberMarkBrock7-Jun-08 18:52 
GeneralRe: XNA 3.0 PinmemberThe Dogcow Farmer8-Jul-08 7:25 
GeneralI get errors PinmemberPer Grill24-Mar-08 0:35 
GeneralPoor title choice! PinmemberInitri9-Mar-08 8:56 
GeneralRe: Poor title choice! PinmemberLightTD9-Mar-08 10:25 
GeneralRe: Poor title choice! PinmemberInitri9-Mar-08 12:39 
QuestionShow-Off? PinmemberRi Qen-Sin9-Mar-08 2:48 
AnswerRe: Show-Off? PinmemberLightTD9-Mar-08 3:09 
AnswerRe: Show-Off? PinmemberMember 468794217-May-08 20:57 
JokeRE PinmemberWadie8-Mar-08 4:30 
GeneralRe: RE PinmemberLightTD8-Mar-08 15:56 
GeneralRe: RE PinmemberPedro Güida9-Mar-08 11:46 
GeneralRe: RE PinmemberLightTD9-Mar-08 23:52 
GeneralRe: RE [modified] PinmemberPedro Güida10-Mar-08 4:16 
GeneralRe: RE PinmemberLightTD10-Mar-08 5:12 
GeneralRe: RE PinmemberPedro Güida10-Mar-08 6:40 
GeneralRe: RE PinmemberLightTD10-Mar-08 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 9 Mar 2008
Article Copyright 2008 by LightTD
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid