Microsoft.Xna.Framework problem...

Oct 3, 2010 at 11:18 PM
Edited Oct 4, 2010 at 8:18 AM

Hey all, I can't figure this out for the life of me:

 

C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;DEBUG;XBOX;XBOX360;XNA /reference:"..\..\..\..\..\Downloads\Farseer Physics Engine 3.0 SimpleSamples XNA\Farseer Physics Engine 3.0 XNA\bin\x86\Debug\Farseer Physics 3.0 XNA.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\Microsoft.Xna.Framework.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\Microsoft.Xna.Framework.Game.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\mscorlib.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.Core.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.Xml.dll" /reference:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.Xml.Linq.dll" /reference:"..\..\..\..\..\Downloads\TiledLib GS3.1\TiledLib GS3.1\References\Xbox 360\TiledLib.dll" /debug+ /debug:full /optimize- /out:"obj\Xbox 360\Debug\Xbox360Game1.exe" /resource:"obj\Xbox 360\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt",Microsoft.Xna.Framework.RuntimeProfile /target:exe Laser.cs Properties\AssemblyInfo.cs Program.cs Game1.cs
C:\Users\Andrew\Documents\Visual Studio 2008\Projects\Xbox360Game1\Xbox360Game1\Game1.cs(51,16): error CS0012: The type 'Microsoft.Xna.Framework.Vector2' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'.
c:\Users\Andrew\Downloads\Farseer Physics Engine 3.0 SimpleSamples XNA\Farseer Physics Engine 3.0 XNA\bin\x86\Debug\Farseer Physics 3.0 XNA.dll: (Related file)
C:\Users\Andrew\Documents\Visual Studio 2008\Projects\Xbox360Game1\Xbox360Game1\Game1.cs(44,23): error CS1502: The best overloaded method match for 'FarseerPhysics.Dynamics.World.World(Microsoft.Xna.Framework.Vector2)' has some invalid arguments
C:\Users\Andrew\Documents\Visual Studio 2008\Projects\Xbox360Game1\Xbox360Game1\Game1.cs(44,33): error CS1503: Argument '1': cannot convert from 'Microsoft.Xna.Framework.Vector2 [c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\Microsoft.Xna.Framework.dll]' to 'Microsoft.Xna.Framework.Vector2 []'

 

Apparently I'm using the wrong version of Microsoft.Xna.Framework and I have no idea where to begin fixing it. Could someone help me out please? From what I can find on google, I need to make sure Farseer and my project are using the same assembly reference. Is that right? How?

 

Thanks!

 

edit:

alright, after hours of fooling around, i finally fixed it. for anyone else who had the same problem, here's what i did:

I opened the farseer physics 3.0 xna project, made sure the Microsoft.Xna.Framework was pointed to the one at C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\Microsoft.Xna.Framework.dll

Right clicked on the project and created a copy for Xbox 360.

Built it, added the built dll as a reference in my project. yay!

 

But maybe no one else is having this problem cause that solution may be obvious to others. :\ Hopefully this helps someone though if it happens to them.