[Mono-list] Method not found: 'System.Threading.Monitor.Enter '

Ian Norton Ian.Norton-Badrul at thales-esecurity.com
Fri Sep 30 05:14:48 EDT 2011


This is all a bit of an unforseen consequence of mono 2.10 having the 4.0 profile as the default target.

gmcs now has a "-sdk" option,  which defaults to 4.  So unless you add '-sdk:2' to your command line monodevelop and other things will silently build against the 4.0 profile .

I had terrible fun trying to work out what was broken after re-building gtk-sharp one day, all my gtk-sharp things stopped working.

I've had to create a small shell script to set -sdk:2 by default when running gmcs ( I don't want 4 yet )

________________________________________
From: mono-list-bounces at lists.ximian.com [mono-list-bounces at lists.ximian.com] On Behalf Of Chris Derrick [Chris.derrick at storagecraft.com]
Sent: 29 September 2011 21:09
To: mono-list at lists.ximian.com
Subject: Re: [Mono-list] Method not found: 'System.Threading.Monitor.Enter      '

Thanks, that was it.  I guess that I must have upgraded mono-devel at the
same time which in turn changed the runtime version of my solution.

Thanks again!

--
View this message in context: http://mono.1490590.n4.nabble.com/Method-not-found-System-Threading-Monitor-Enter-tp3857390p3857512.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list