As you do I googled this and did not get much in the way of targeted results.
I have updated my project to .NET Core 5 and in particular using SDK 5.0.100-preview.8.20417.9 with the latest preview of Visual Studio 2019.
The SDK is 5.0.100-preview.8.20417.9
[C:\Program Files\dotnet\sdk].
I ran a migration using:
dotnet ef migrations add INITIAL --context CATALOGContext -s ../Jobsledger.API
and got the following error:
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider.
Error: Method not found: 'Microsoft.AspNetCore.Authentication.AuthenticationBuilder Microsoft.AspNetCore.Authentication.AuthenticationBuilder.AddScheme(System.String, System.String, System.Action`2<System.__Canon,!!2>)'.
I found this on Stackoverflow and also this
That second one indicates they have deprecated some of what was once there.
I had this working in an earlier version of my program and I also included IDesignTimeDbContextFactory
in a migrations file in the startup and that did work before.
Can someone point me in the right direction with this. The error (for me) is cryptic and when I look closely at what that second option indicates it tells me they pulled out code that I needed.. however I am lost on this..