Could not resolve this reference. Could not locate the assembly "MySql.Data"

1

How do I add the reference "MySql.Data"? I'm using SharpDevelop and not Visual Studio !!

    
asked by anonymous 01.05.2015 / 18:43

2 answers

2

The following solutions have been tested on SharpDevelop 5 , but in Visual Studio 2012/2013 it is very similar:

Option 1 - Nuget

Double-click References and then Manage Packages :

Inthewindowthatopens,typethepackagename(intheMySql.Datacase)inthetextboxandclickontheMagnifyingglassbuttontosearch:

Ready! Your reference is created and the best: since it was done with Nuget, you can manage updates directly from the IDE by clicking on the Updates of the window that appears in the second image.

Option 2 - Direct Reference

Double-click References and then Add Reference :

Clickthethirdtab,".NET Assembly Browser" and then "Browse" to open the Windows file selection box:

After selecting the DLL you can already reference your code.

    
01.05.2015 / 20:20
1

Copy the MySql.Data.dll class library and send it to the Root folder of your project, eg if you have Visual Studio, it will be ] / Projects / SeuApp / bin / debug /
and put the file there ... try to do it there

UPDATE : I noticed you're in SharpDevelop, so find where your project's executable is and put the assembly there.

    
02.05.2015 / 21:11