Sign in to follow this  
iBorland

Need help with a problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.