[Mono-list] MySql.Data mcs compilation error

k1Ll5w1tcH garriths at gmail.com
Wed Jul 23 09:53:20 EDT 2008




jmalcolm wrote:
> 
> 
> 
> k1Ll5w1tcH wrote:
>> 
>> Howzit
>> 
>> When compiling I receive the following error: 
>> error CS2015: Source file `MySql.Data.dll' is a binary file and not a
>> text file
>> 
>> Please help???
>> 
>> Thanks
>> 
> 
> Almost certainly you are not inlcuding the -r: before MySql.Data.dll as
> noted.
> 
> You need to reference System.Data.dll as well.
> 
> Also, if you are using MySql.Data.dll version 5+ you need to use the 2.0
> libraries.  This caused me a lot of hair pulling when I started.  To do
> this, use the gmcs compiler instead of mcs.
> 
> Eg. gmcs SourceFile.cs -r:System.Data.dll -r:MySql.Data.dll
> 
> This works well for me at least.
> 


Awesome, gmcs works sweet. Sorted all my previous errors.
-- 
View this message in context: http://www.nabble.com/MySql.Data-mcs-compilation-error-tp18607773p18611232.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list