Connector is installed in gac:
nn@sv3:~/mysqlconnector.net/v4.5$ gacutil -l |grep MySql
MySql.Data, Version=6.9.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d
I have added MySql.Data to machine config:
nn@sv3:/$ cat /etc/mono/4.5/machine.config |grep MySql
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
When I try to comile with ref to MySql.Data I get:
nn@sv3:/$ sudo ./build.sh
error CS0006: Metadata file `MySql.Data.dll' could not be found
I have tried to changed ref with full path and both MySql.Data and MySql.Data.dll
Here is the compile command:
dmcs -target:library -out:SQLtest.dll -pkg:dotnet -lib:/usr/lib/mono/2.0 -lib:/usr/lib/mono/4.5 -r:MySql.Data -r:*.cs
Have also tried to use v4.0 with same result. What am I missing to get this working?