I cannot run my migrations - this is very annoying as I cannot move on with my project...
I think it must be something with ef tooling because some time back (one month) the migrations in this project worked.
The Add-Migration command works successfully, but subsequent Update-Database fail with following error:
Applying migration '20181129154443_strlen'. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Remoting.RemotingException: Cannot load type 'Microsoft.EntityFrameworkCore.Design.IOperationResultHandler, Microsoft.EntityFrameworkCore.Design, Version=126.96.36.199, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Some maybe relevant info:
There is similar question (unanswered): EF core migration failed: System.Runtime.Remoting.RemotingException: Cannot load type 'Microsoft.EntityFrameworkCore.Design.IOperationResultHandler but none of the suggestions there did not helped me.
What I have tried:
Solution for me was to convert all of the projects in solution from 4.7.2 to .NET Core 2.2. (also all the NuGets (EFCore, EFCore.Design) were upgraded to v2.2.2). After that the migrations started to work.