Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
George Jonsson 28-Dec-14 8:50am    
And the errors you get are?
And out of curiosity, why not use the DLL provided by MySQL?
Maciej Los 28-Dec-14 12:17pm    
"i got some errors" is not informative at all!

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.
 
Share this answer
 
Comments
Maciej Los 28-Dec-14 12:22pm    
Sounds reasonable, +5!
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#[^]
 
Share this answer
 
Comments
Mehdi Gholam 28-Dec-14 12:24pm    
:)
Maciej Los 28-Dec-14 12:25pm    
;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900