MonoDevelop and C# compiling

Hi,

I’m exclusively using C# in my game development and currently, because I want to debug some stuff, I’m using MonoDevelop to make minor changes to my code.

Unfortunately I run into trouble when MonoDevelop tells me that everything compiles fine while actually it should not. In fact, I have a dictionary set up like this:

Dictionary<Pos, List> blubb;

Accidentally I wrote my line of code like this:

blubb[pos].Add(pos, go);

Now, this should not compile. Not even under MonoDevelop, because the Add() does not take 2 parameters. But then, MonoDevelop just tells me that everything is fine and only when starting the debugger and re-importing the c# file, the Unity Compiler throws an error…

Is there some magic setting somewhere to actually make MonoDevelop work AS I EXPECT?

While I appreciate that Unity is putting efforts into enabling us to debug our code, I would appreciate even more if this thing actually would be delivered in a usable way.

Have fun…

go to Tools->Preferences
On the left of the window it pops up, it has lots of options. Unity->Debugger is the one you want.
From there, you’ll see “Build project in MonoDevelop”. Just make sure that is checked and it should work.