Jump to content

Recommended Posts

Posted (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 by iBorland
problem solved

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...