[Mono-list] Referencing a DLL and case sensitivity in MonoDevelop, C# compiler and runtime?

Peter Hultqvist phq at silentorbit.com
Mon Aug 27 00:45:18 UTC 2012

I downloaded the mysql connector from mysql.com, added a reference to it
in my project using MonoDevelop. I added a single MySqlConnector
variable and compiled the code.
When running I immediately get a TypeLoadException. Upon some guessing I
renamed the mysql.data.dll to MySql.Data.dll and it all worked fine.

My first reaction was to file a bug at http://bugs.mysql.com
<http://bugs.mysql.com/> but then I got another though.

Neither MonoDevelop nor the compiler complained about not finding the
dll, but the runtime did.
I successfully referenced the dll in MonoDevelop and can from there
browse it write code with code completion using classes from the dll.

Am I correct in expecting a consistent behaviour along all three items,
if so which one is the correct?
Should the runtime not be case sensitive or should MonoDevelop/the
compiler be case sensitive and complain if a referenced dll does not
match in case?

More information about the Mono-list mailing list