So I searched and couldn't find anyone else having this problem:
When I try to use a Vector2 anywhere in my code, the following error is spit out at me:
Ambiguous reference: Microsoft.Xna.Framework.Vector2 Microsoft.Xna.Framework.Vector2 match
Yes, both libraries are identical. It seems like I have referenced this twice or something... I have no idea what the problem is. Any insight would be greatly appreciated.
Here is a sample snippet of one place where this is happening:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Super_Pong.Engine.World
{
public class GameWorld
{
Vector2 v1 = new Vector2(1, 2); //Error line
}
}
Farseer allows the use of the library outside of an XNA project. Therefore there are multiple versions of the library. The version not depending on XNA recreates these types internally. You need to reference a differetn version of the farseer library, namely the one built for XNA.
You can download it from: http://farseerphysics.codeplex.com/releases/view/64108