iBorland Posted February 16, 2019 Posted February 16, 2019 (edited) Создаю проект на 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 February 16, 2019 by iBorland проблема решена
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