Mysql dll never appears in bin folder

My site is using MySql as its db. I have added links to mysql.Data, MySql.Data.Entity, MySql.Web dll using link and view at their location. However, these dlls are never in my bin folder and therefore are not published to the site when published to the host server. If I add them again, they are verified in the review section, so the site knows to link to them, but they are not in the bin folder. Does anyone know what's going on?

+3


source to share


2 answers


MySql.Data.dll

is in the GAC (Global Assembly Cache), so Visual Studio does not copy it to the bin folder, even if Copy Local

true.



You can copy the assembly from the installation directory (I was able to find it in Program Files/MySQL/MySQL Connector xxx/Assemblies

and copy it manually to the bin folder for deployment.

+2


source


If you select your MySQL links in the solution browser, you can control whether it gets copied or not to your bin folder. I forget the exact name of the property, but it should be pretty easy to spot.



0


source







All Articles