When distributing my app to my client, I've been asking them to just run the CoreLab installer with the Minimal installation checked, as noted that I can do in the documentation. I'd really like to be able to just send the dll along with an app.config file (if necessary) to make it easier for the end user (I'm mainly thinking about when MySQLDirect gets upgraded).
I've found that if I manually modify the machine.config, my code will pick up the MySQLDirect provider with no problem just by providing the dll by adding this line:
However, I've been playing around with app.config, and can't seem to get it right, I always get an error along the lines of "MySQLDirect factory not found" here:
Code: Select all
return DbProviderFactories.GetFactory( CurrentFactory );
As I said, everything works great if I have the user run the install, or manually modify machine.config, but I would appreciate some guidance on adding MySQLDirect to the factory list on a per-app basis.