‘Copy Local’ in Visual Studio

Trying MySql with NHibernate for the first time. On the first run, I got:

Could not create the driver from NHibernate.Driver.MySqlDataDriver

For some reason, when I referenced the MySql Connector-Net in my project, it’s ‘Copy Local’ attribute was set to false (usually false is only set on System DLLs that will definately be in the GAC). Setting it to true fixed my problem.

posted 2 years ago