C#Project(Framework 4.5)中的Mysql连接器源代码(Framework 2.0) [英] Mysql Connector Source Code (Framework 2.0) in C# Project (Framework 4.5)
本文介绍了C#Project(Framework 4.5)中的Mysql连接器源代码(Framework 2.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
i在.Net Framework 4.5中有一个项目,我需要将Mysql Connector Source代码导入到这个。
但是有一个问题, Mysql Connector框架是2.0,我在项目中导入它时出现了一些错误。
我指定我不会使用dll。
我该如何解决?
亲切地
Hello,
i have a project in .Net Framework 4.5, and i need to import the Mysql Connector Source code into this one.
But there is a problem, the Mysql Connector framework is 2.0, and i got some errors by importing it in my project.
I Specify that i won't use a dll.
How can i fix it?
Cordially
推荐答案
.net中没有任何内容2,它不在.net 4.5中,所以如果你有项目文件只需将项目升级到v4.5。
.net v4.5可以加载和使用.net 2 DLL文件没有问题所以你真的不需要重新编译。
There is nothing in .net 2 which is not in .net 4.5 so if you have the project file just upgrade the project to v4.5.
.net v4.5 can load and work with .net 2 DLL files without a problem so you really don't need to recompile.
As George Jansson [ ^ ]提到,没有选项可以使用 MySql .net连接器 [ ^ ],无需引用正确的dll。
请参阅:将C#连接到MySQL [ ^ ]和:使用C#连接到MySQL数据库 [ ^ ]
As George Jansson[^] mentioned, there is no option to use MySql .net connector[^] without referencing to the proper dll.
See this: Connect C# to MySQL[^] and this: Connecting to a MySQL Database in C#[^]
这篇关于C#Project(Framework 4.5)中的Mysql连接器源代码(Framework 2.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文