I am sorry. I am newbie in C#. I use Visual Studio Mac. I want to try to connect mysql database. I have added mysql package. When I run, I get error. The error is :
adding a reference to assembly ‘System.Data, Version-4.0.0.0, Culture=neutral, PublicKeyToken
The solution is :
In Solution Explorer, right click (two finger tap on mousepad for Mac) the 'Dependancies' folder under the Project (current project where you are seeing this error).
Click 'Edit References'
Select (list defaults to All available) Select (tick) the Project you need to reference that is holding 'System.Data'.
Click OK.
This will create a link between these two projects and therefore a reference/dependency is created.
In VS editor, right click on red-underlined error (two finger click on mouse-pad for Mac). The first option in context menu should be "Quick Fix >". From there you can select how you want to fix the reference, either add a using statement or fully qualify inline.
My solution in Visual Studio for Mac 7.3 Preview was to right click on the "Dependencies" node for the project and click "Edit References..."