xamarin and mac

xamarin and mac

Postby Fyjybv » Thu 02 Apr 2015 14:52

Hi

I want to to try dotConnect for MySQL on mac under xamarin. Where I can get proper trial version and how correctly install it on mac?
Fyjybv
 
Posts: 1
Joined: Thu 02 Apr 2015 14:47

Re: xamarin and mac

Postby Pinturiccio » Fri 03 Apr 2015 15:39

We have not tested dotConnect for MySQL with Xamarin on Mac, and cannot guarantee their compatibility. Nevertheless, you can check whether it works with Xamarin on Mac by yourself.

dotConnect for MySQL has a Trial version, which allows you to evaluate dotConnect for MySQL during 30 days since the provider installation. Trial version of dotConnect for MySQL offers the same features as the Professional edition. You can download the Trial version of dotConnect for MySQL from our site: http://www.devart.com/dotconnect/mysql/download.html

dotConnect uses technical licensing of Microsoft .NET Framework. This means that when you create an application that uses Devart assemblies, it must include license information. License information is a specially formed embedded resource. It is checked when a connection is opened.

Here we describe how to add the license resource for Mono on Linux; however, the actions should be the same for Xamarin on Mac:

There are no Linux installation packages of the dotConnect for MySQL provider. dotConnect for MySQL cannot be installed Linux OS. If you want to use dotConnect for MySQL on Linux OS and with mono, perform the following actions:

1. Install dotConnect for MySQL on a computer with Windows OS;
2. Copy Devart assemblies to a computer with Linux OS;
3. As you can't install dotConnect for MySQL on Mono, you have to compile the license resource manually on a Windows computer and then copy it to the Mono computer and attach it to your project as an embedded resource.
For more information, please refer to http://www.devart.com/dotconnect/mysql/docs/Licensing.html#mono
The license resource can be compiled in the following way:
1) Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.MySql.MySqlConnection, Devart.Data.MySql
2)Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.MySql.dll"
Where:
- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file;
- licenses.licx is your licenses.licx file;
- %Assembly Path% is the Devart.Data.MySql.dll assembly location.
3) The License compiler will generate the 'MyApplication.exe.licenses' resource file;
4) Add this file to your project as an embedded resource and rebuild the project.
Pinturiccio
Devart Team
 
Posts: 1852
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for MySQL