I’ve just downloaded the newest version of Monogame (3.5) and I’m getting myriad errors from Visual Studio (which wasn’t true before the upgrade). I’m not sure what version I had prior, but suffice it to say it’s been a few years.
The original problem immediately after upgrading was errors of type "The type or namespace ‘Xna’ does not exist in the namespace ‘Microsoft’, invalidating all my using statements.
Realizing Xna had been removed as an assembly reference, I put it back in.
The result was then a slew of errors in the style of “The type exists in both Monogame and XNA” for about five different data types. A few people on StackOverflow pointed out that I no longer need the Xna reference in the project, but that doesn’t solve the original problem.
Removing the “using Microsoft.Xna” statements results in “type or namespace not found” errors for many types.
It’s also my understanding that I should not have a “using MonoGame.Framework” statement. Apparently I should have Microsoft.Xna as my using statements, but MonoGame as my assembly reference. Confusing.
A post on a different question led me to try changing the target framework for the project from “.NET Framework 4” to “.NET Framework 4.5”. That seems to fix the problem with Microsoft.XNA not being recognized, but this only generates new errors.
Error 2 The type or namespace name ‘Graphics’ does not exist in the namespace ‘Microsoft.Xna.Framework’ (are you missing an assembly reference?)
I’m now getting this for everything under the Microsoft.Xna.Framework umbrella, including Graphics, Input, Audio, Content, GamerServices, and so on.
Should I just start a brand new project and paste my old code into it? What am I doing wrong here?