Skip to content

How to Add This Library into Your Project

Adrian Voo edited this page Mar 11, 2020 · 15 revisions

For .NET 4.5.2 and above, or .NET Standard 2.0 compatible projects, you may use the Nuget Version: https://www.nuget.org/packages/MySqlBackup.NET/

Besides nuget, the simplest and ultimate pain free method that you should always consider is..... by merging the source code directly into your project.

Why??

1 big issue is the target framework and platform. The development environments are difference among developers. Some requested the release and support for the following platform/framework:

  • .NET Framework 2.0, 3.5, 4.0, 4.5, 4.6.1, 4.7... etc...
  • a signed version
  • .NET Standard version
  • for other connector provider other than MySql.Data.DLL
  • different version of MySql.Data.DLL

I really would like to release this library to cover as much platforms as possible, but the recompilation work consumes me quite a lot of time. and I need to redo the recompilation almost every release of this library.

So guys, lets go to the pain free version >> copy paste the source code into your project, simple and build error free. The whole source code does not consist of hundreds of files, just a few files and folders. It's not hard to include the source files into your project, right? Yes, unless, of course, if you are using VB.NET, then you end up no choice but to reference the DLL.

I even recommend you to download the source code of MySql.Data.DLL directly into your project too, to eliminate the build errors that might occur. Source code of MySql.Data.DLL can be found at their website.

Lastly, if due to some reason that you can't include the source code into your project (as mentioned above, maybe you are using VB.NET,F#, etc), then you can download this library at Release Page of this project. But, keep reminded that, pre-build version of MySqlBackup.NET tied to the very specific version of MySql.Data.DLL.

For example, if the downloaded MySqlBackup.NET is bond with MySql.Data.DLL v6.7.9, then this MySqlBackup.NET will not work with MySql.Data.DLL v8.0 or MySql.Data.DLL v5.10. You must use the version of MySql.Data.DLL comes with the downloaded MySqlBackup.NET.

Clone this wiki locally