Running NET SDK under Linux/Mono
I have just spent a nice morning trying to get NET SDK working under Linux (CentOs 5/6)/Mono(2.10.8)
There were some snags along the way but finally it worked. I'd like to share my experience in case someone else tries the same.
First of all. Don't use app.config/web.config to configure Couchbase client.
I will give an error (see https://github.com/enyim/EnyimMemcached/issues/57)
Rather than that use:
var cf = new CouchbaseClientConfiguration();
var c = new CouchbaseClient(cf);
and you'll be fine.
Second step: make sure you use the same runtime version for couchbase/enyim as your program.
Couchbase downloads provide 3.5, so you should compile with gmcs rather than dmcs.
If you really need dmcs you'll have to recompile the NET SDK from source (quite easy).
* Tip for Couchbase - it'd greatly help mono users if you provided the SDK compiled for the 4.0 runtime
Third problem lies in mono itself. There is now a bug in mono (https://bugzilla.xamarin.com/show_bug.cgi?id=4242) that affects JSON serialization/deserialization if your culture uses coma rather than dot for decimal point.
TO go around this problem set Thread.CurrentThread.CultureInfo or change you default culture (LANG=en_US prior to running mono).
Hope it helps you save some time :)