iBorland Posted February 16, 2019 Share Posted February 16, 2019 (edited) Hello. I create a project in C#. The project is created as a .Net Core class library Connected via NuGet MySql.Data When working with MySQL at start of the server in the console gives here such errors: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:2 CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?) -> auth/auth.cs:2 CS0246: The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:17 CS0246: The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:17 CS0246: The type or namespace name 'MySqlCommand' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:23 CS0246: The type or namespace name 'MySqlCommand' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:23 CS0246: The type or namespace name 'MySqlDataReader' could not be found (are you missing a using directive or an assembly reference?) -> database/database.cs:24 Tried to throws MySql.data.dll in the project folder (bridge/resources/project name) and in meta.xml added <Assembly> to this .DLL file. After that, it starts to give errors that can not find other libraries that run MySQL (System.*.dll). How to solve this problem?UPDATE problem solved Edited February 16, 2019 by iBorland problem solved Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now