0

Error Message:

CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

Reference file is included in reference folder. Project is running on debug, but not working on release mode.

EylM
  • 5,967
  • 2
  • 16
  • 28
  • Check your csproj file; do you have a MySql package reference? and is it perhaps in an `` with a `Condition` that checks the configuration? If so: move it to an `` that *doesn't* have a `Condition` check – Marc Gravell Aug 21 '19 at 08:55

2 Answers2

0

use;

using MySql;
  • Rebuild your project and upload all bin DLLs
  • this then reupload mysql.dll and check the result
  • the namespace for mysql is MySQL.Datas dans MySQL.Types (something like, check to documentation in your mysql connector install path).
standart
  • 28
  • 2
0

In Solution Explorer,

  1. Right Click on the MySQL in Reference section
  2. Select properties
  3. Change copyLocal as true
  4. Rebuild the project.

enter image description here

SH7
  • 732
  • 7
  • 20