fluentmigrator / fluentmigrator

Fluent migrations framework for .NET
https://fluentmigrator.github.io
Apache License 2.0
3.28k stars 659 forks source link

Support for Sap.Data.Hana.Core #1501

Open lucas-garrido opened 3 years ago

lucas-garrido commented 3 years ago

Hello ! When i try to run a migration i have the following error : ---> (Inner Exception #4) System.IO.FileNotFoundException: Could not load file or assembly 'Sap.Data.Hana.v4.5, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

I'm not using the hana v4.5 dll but the last one for net core

To Reproduce csproj : image

startup.cs: image image

Information:

jzabroski commented 3 years ago

AddHana uses Sap.Data.Hana, not Sap.Data.Hana.Core. We would need to add an extension method for that. It is easy enough. Let me know if you are interested in submitting a PR for an AddHanaCore()