简体   繁体   中英

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

CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference![enter image description here][1]

this is the problem i get i have tried and tried The biggest problem is this works on my computer the remote server

You need to reference the mysql library. Install the nuget package manager and run the following:

Install-Package MySql.Data

See here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question error CS0246: The type or namespace name 'Npgsql' could not be found (are you missing a using directive or an assembly reference?) Error CS0246 The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?) Error CS0246: The type or namespace name 'StreamingContext' could not be found (are you missing a using directive or an assembly reference?) error CS0246: The type or namespace name 'IWebHostEnvironment' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?)? CS0246 The type or namespace name 'ErrorViewModel' could not be found (are you missing a using directive or an assembly reference?) Error CS0246 The type or namespace name 'CreateRandomAnswersForKey' could not be found (are you missing a using directive or an assembly reference?)? C# error CS0246 The type or namespace name 'Socket' could not be found (are you missing a using directive or an assembly reference) CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference? in c# Error CS0246 The type or namespace name 'Write_To_Console_dr' could not be found (are you missing a using directive or an assembly reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM