I have a custom .dll I use in most of my tests, and that custom .dll references and uses the MySQL.Data.dll. I noticed that when I ran the test on a different system, I got the following error:
Code: Select all
Could not load file or assembly 'MySql.Data, Version=220.127.116.11, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
I then noticed that MySQL.Data.dll was not being copied into the bin/debug folder. Once I copied it into that folder, the test ran just fine.
I may be wrong, but should I not have to re-add MySQL.Data.dll to my test references if a referenced .dll references MySQL.Data.dll in itself? Also, when explicitly adding the dll reference, should it not copy that into the bin/debug folder, or at least be able to reference it properly from GAC?
Any insight into why this error would occur would be greatly appreciated!