alansiqueira27
alansiqueira27

Reputation: 8534

Error loading XNA 2.0

I am getting an error trying to convert this project which was made in XNA 2.0. I have now Visual Studio 2010 with XNA 4.0. And it throws this error while converting:

The imported project "C:\Program Files\MSBuild\Microsoft\XNA Game Studio\v2.0\Microsoft.Xna.GameStudio.Common.targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.

How can I fix it?

Upvotes: 0

Views: 896

Answers (1)

Greg Buehler
Greg Buehler

Reputation: 3894

Microsoft.Xna.GameStudio.Common.targets defines the build actions for XNA 2.0 projects. The conversion process looks like it is trying to detect what build process is currently defined for XNA 2.0, but this is no longer relevant because there should be a corrosponding C:\Program Files\MSBuild\Microsoft\XNA Game Studio\v4.0\Microsoft.Xna.GameStudio.Common.targets that describes the build targets for XNA 4.0 projects.

The conversion wizard is only designed to update projects from the version immediately preceding the current version.

You will need to install the XNA 3.0 and/or XNA 3.1 and perform the wizard using those XNA distributions first.

There are many breaking changes between XNA 2.0 and XNA 4.0. The commonly suggested action is to create a new XNA 4.0 project from scratch and import existing source files and fix the compilation errors manually.

Upvotes: 2

Related Questions