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
To do this, right-click on the Package folder in the Solution Window, and select Add Packages. More information on using a NuGet Package is provided in the Including a NuGet package in your Project walkthrough.
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..."
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.
The solution is :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With