MySqlBackup.NET issue with MySql.Data version

384 views Asked by At

I have one winforms application which uses MySQL as database. I was using the package MySqlBackup.NET to perform backup tasks in the application.

Now I updated the MySQL connector to version 8.0.17 and the MySqlBackup.NET to version 2.3.0, which are the most recent stable versions.

The issue is that when I try to use MySqlBackup.NET to perform the backup, I get one error saying that: "It was not possible to load file or assembly MySql.Data, Version=8.0.16.0".

In other words: MySqlBackup.NET is trying to locate MySql.Data version 8.0.16.0 and failing because the one I have is 8.0.17.

This makes little sense to me. After all, the dependencies of MySqlBackup.NET version 2.3.0 states that it requires MySql.Data version greater or equal to 8.0.16.0 which the one I have clearly satisifies.

What can I do to solve this issue? My initial idea was to clone the repository of MySqlBackup.NET on GitHub, update the reference to 8.0.17 and build it myself, but I think this is probably the last option.

1

There are 1 answers

0
mjb On

The source code of MySqlBackup.NET is only a few files and folders.

You can simply add the source code directly into your project. Then, you can use any version of MySql.Data as you like.