In a hurry? Jump to: TL;DR.
Make sure you have installed the latest MonoGame. The version I’m using is 3.5 (for Visual Studio installed using the official installer, not NuGet).
The Farseer Physics Engine is a C# Box2D port that’s very popular among C# developers, it’s hand-optimized and believe it or not, it performs even better than the actual Box2D… well, at least when comparing Farseer 3.2 to Box2D 2.2 (the ported version), but I really doubt those numbers changed substantially.
The current Farseer version is 3.5, it’s somewhat old (Aug 2013) but it’s bug-free (afaik) and fully usable, the only real problem is that the samples won’t work with Visual Studio 2015. If you just want to give it a try that’s a problem.
To get the latest version, access the official page (link) and click the big “Download” button:
The file you’re downloading is called “Farseer Physics Engine 3.5 Samples” but it doesn’t contain only the samples but the actual engine too. After downloading the archive, extract its contents somewhere in your disk, you’ll get a lot of solution files and folders too, there are solutions for XNA, Xbox360, WP7, which are all pretty much dead tech by now, and the one we’re interested in: MonoGame.
After opening that solution in Visual Studio 2015, the first thing you want to do is to set the “Samples MonoGame” as the StartUp Project, to do that, right click on it in the Solution Explorer and select “Set as StartUp Project” on the menu, as the image below, note that its name turns bold in the Solution Explorer view:
If you try to run it at this point, a lot of errors will appear:
To fix that, expand all “References” from all projects, and remove the MonoGame.Framework (right-click and select “Remove”) please note that you have to remove from all 3 projects (screenshot shows only two):
Now re-add them pointing to the correct resource, to do that, right click over “References” and select “Add Reference”, then on the dialog that appears, browse the correct MonoGame Assembly, in my case it’s in the default install directory (C:\Program Files (x86)\MonoGame\v3.0\Assemblies\Windows):
Select it and add to all the 3 projects, please note that you only have to browse the dll once because there’s a “Recents” list so for the other 2 times you just have to tick it.
At this point you may have noticed that there’s a reference to Tao.sdl that is marked with an exclamation mark, that’s because VS couldn’t find it, you can just remove that because it only exists for SDL support, if you want to fix it instead, you can get it here, but it was even removed from WinGL so even if you fix it I don’t know if you’ll to be able to use the SDL backend with recent MonoGame versions.
If you try to run it now, you’ll get errors regarding the .NET Framework version you’re using, to fix that, right-click on all projects, select “Properties”, and on the settings tab that appears, select a newer .NET Framework (I’ve selected 4.5). Do this for all 3 projects:
Now if you try to run it, it will complain about SDL, this one is easy to fix, right-click on SDL.dll and remove it too:
You should be able to run it now:
TL;DR: Too Long; Didn’t Read
You can download the updated project with the solution file updated to VS2015 here: