编译时VB2023项目错误 [英] VB2023 project error when compiling
问题描述
刚刚完成了一个为我完成的项目,加载/编译时出错。编码器不可用,可能永远不会再有,所以...
应用获取图像,重命名并将其复制到指定目录。它还将一些信息保存在MySQL数据库中。
它工作正常,但需要一些调整。我对VB的有限知识允许我进行这些更改,但由于这些错误,我无法运行或重新编译项目。
错误:
引用的组件"MySQL.Data"无法找到
和
Hi,
Just got a project that was done for me and there is an error when loading/compiling. The coder is not available, and probably won't ever be again, so...
The app gets an image, rename it and copy it to a specified directory. It also saves some information in a MySQL database.
It works fine, but needs some few adjustments. My limited knowledge of VB allows me to make these changes, but I can't run or recompile the project due to these errors.
Error:
The referenced component "MySQL.Data" could not be found
and
无法找到程序集"MySql" .Data,Version = 6.9.9.0,Culture = neutral,PublicKeyToken = c5687fc88969c44d,processorArchitecture = MSIL"。
It was not possible to find assembly "MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL".
任何帮助都会很棒。
推荐答案
错误:
引用的组件"MySQL.Data"无法找到
Error:
The referenced component "MySQL.Data" could not be found
您的项目引用了您计算机上未找到的组件。 这可能是您的VS版本的安装问题:安装时,您需要确保MySQL是安装的一部分。
如果安装了MySQL,则需要进入Project References并重新选择对"MySQL.Data"的引用。安装和引用MySQL的确切过程将根据您的VS版本而有所不同。 例如,见:
https://stackoverflow.com/questions/6422936/adding-mysql-data-as-a-reference-in-visual-studio-ultimate-2010
Your project has a reference to a component that is not found on your machine. This is possibly an installation issue with your version of VS: when it is installed you need to ensure that MySQL is part of the installation.
If MySQL is installed then you need to go into Project References and re-select the reference to "MySQL.Data". The exact procedure for installing and referencing MySQL will vary depending on your version of VS. See, for instance:
https://stackoverflow.com/questions/6422936/adding-mysql-data-as-a-reference-in-visual-studio-ultimate-2010
这篇关于编译时VB2023项目错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!