Sign in to follow this  
iBorland

Нужна помощь с проблемой

Recommended Posts

Создаю проект на C#.
Проект создан как библиотека классов .NetCore

Через NuGet подключил MySql.Data
При работа с MySQL при запуске сервера в консоль выдаёт вот такие ошибки:

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

Попробовал закинуть MySql.Data.dll в папку с проектом (bridge/resourses/projectname) и в meta.xml добавил <assambly> на эту самую .dll.
После этого начинает ругаться что не может найти другие библиотеки, с которыми работает MySQL (всякие System.*).

Как можно решить эту проблему?



UPDATE: проблема решена

Edited by iBorland
проблема решена

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.