I've just downloaded the newest version of Monogame (3.5) and I'm suddenly getting ambiguous references with XNA. I'm not sure what version I had prior, but suffice it to say it's been a few years.
I've tried adding and removing assembly references in Visual Studio, but this only generates different errors.
Here's the exact message (one of them):
Error 12 The type 'Microsoft.Xna.Framework.Graphics.Texture2D' exists in both 'C:\Program Files (x86)\MonoGame\v3.0\Assemblies\WindowsPhone\x86\MonoGame.Framework.dll' and 'C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Graphics.dll' c:\nightmare games\games\in production\boxland incorporated\boxland (monogame)\boxland\character_control.cs 55
I'm getting these for the following types:
- Texture2D
- GraphicsDevice
- Color
- Vector4
- MathHelper
UPDATE:
I've attempted to remove XNA from the project, using only Monogame. Removing the assembly references and "using" statements results a multitude of "type or namespace not found" errors for the following types:
- Texture2D
- Game
- GameTime
- SpriteBatch
- SoundEffect
- and many others
I already have the assembly reference to MonoGame.Framework. Adding new using statements for MonoGame only resulted in the error:
Error 4 The type or namespace name 'MonoGame' could not be found (are you missing a using directive or an assembly reference?) C:\Nightmare Games\Games\In Production\Boxland Incorporated\Boxland (monogame)\Boxland\Particle_Effects.cs 5
UPDATE:
Project -> Properties -> Target Framework Changing this from ".NET Framework 4" to ".NET Framework 4.5" seems to fix the problem with Microsoft.XNA not being recognized, but this only generated 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?) C:\Nightmare Games\Games\In Production\Boxland Incorporated\Boxland (monogame)\Boxland\Draw.cs 4
I'm now getting this for everything under the Microsoft.Xna.Framework umbrella, including Graphics, Input, Audio, Content, GamerServices, and so on.