Jump to content

iBorland

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by iBorland

  1. 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

  2. Создаю проект на 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: проблема решена

×
×
  • Create New...