I have created desktop application using C#
, having mysql
database.
I have installed the mysql connector
in order to connect to mysql DB
.
when I give the absolute path till project director , I can run the application successfully.
However when i copied the .exe
file from bin/release
folder, application did not work.
It needs MySql.Data.dll
in the current folder, then only it worked, how we can remove this dependency?
I checked the other properties in reference, like Copy Local = true.
still it is not working.