I've been making some changes to the following open source project: https://github.com/SevenSpikes/api-plugin-for-nopcommerce
I am trying to update IdentityServer4
library referenced in the above project from 2.0.3 to 2.4.0. As part of this process I require the migrations scripts from the previous version to the current. I also wanted to get some experience generating migrations scripts as I have never done it before.
I have tried executing the following command
> dotnet ef migrations add
> InitialIdentityServerPersistedGrantDbMigration -c
> PersistedGrantDbContext -o /Migrations/IdentityServer/PersistedGrantDb --project "C:\localpath\Nop.Plugin.Api.csproj"
based on the following documentation
and when I do so I receive the following error
System.IO.FileLoadException: Could not load file or assembly 'System.Threading, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Console.get_IsOutputRedirected()
at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
I have attempted to update to the latest version of the Core 2.2 SDK and it doesn't seem to have helped.
Bit stuck and would appreciate some help!
User contributions licensed under CC BY-SA 3.0