Closed e-gauthier closed 3 years ago
I just merged a PR with a fix. Can you re-test against our dev build? https://docs.duendesoftware.com/identityserver/v5/overview/packaging/#dev-builds
I was running into the same issue and the dev build 6.0.0-preview.2.1 has fixed it
Thank you folks
I just merged a PR with a fix. Can you re-test against our dev build? https://docs.duendesoftware.com/identityserver/v5/overview/packaging/#dev-builds
It work! Thx you.
Which version of Duende IdentityServer are you using? 6.0.0-preview.2
Which version of .NET are you using? .NET 6.0.0-rc.2.21480.5
Describe the bug We are currently migrating our application from .NET 5 to .NET 6.0.0-rc.2.21480.5.
All reference to IdentityServer4 have been updated with Duende.IdentityServer.
When attempting to add a new migration to resolve new dependencies, the error below occurs. (See Data section)
To Reproduce
1) Create a database using code first with IdentityServer4 and .NET 5 2) Update the database 3) Update the project to .NET 6.0.0-rc.2.21480.5 4) Update all references of IdentityServer4 to Duende.IdentityServer 5) Execute add-migration to generate a new snapshot.
Expected behavior
The new migration has been created without error.
Log output/exception with stacktrace
Additional context
Latest implementation of IPersistedGrantDbContext by AspNetCore IdentityServer Task IPersistedGrantDbContext.SaveChangesAsync() => base.SaveChangesAsync();
aspnetcore/ApiAuthorizationDbContext.cs at v6.0.0-rc.2.21480.10 · dotnet/aspnetcore (github.com)
Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext
Version 6.0.0-Preview.1 => Task SaveChangesAsync();
Version 6.0.0-Preview.2 => Task SaveChangesAsync(CancellationToken cancellationToken = default);