IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.01k forks source link

Automapper conflicts, update package. #5412

Closed isnakolah closed 2 years ago

isnakolah commented 2 years ago

Updating AutoMapper package in project throws version conflict error since the Duende.IdentityServer.EntityFramework.Storage 5.2.0 has a AutoMapper package requirement of (<=10.0.0 && < 11.0.0).

Reproducing the issue

To reproduce, update an AutoMapper package to 11.0.0 in a project with IdentityServer4;

Relevant parts of the log file


Version conflict detected for AutoMapper. Install/reference AutoMapper 11.0.0 directly to project RESTApi.Tests.Intergration to resolve this issue.  RESTApi.Tests.Intergration -> RESTApi -> Application -> AutoMapper.Extensions.Microsoft.DependencyInjection 11.0.0 -> AutoMapper (>= 11.0.0) 
 RESTApi.Tests.Intergration -> RESTApi -> Infrastructure -> Microsoft.AspNetCore.ApiAuthorization.IdentityServer 6.0.1 -> Duende.IdentityServer.EntityFramework.Storage 5.2.0 -> AutoMapper (>= 10.0.0 && < 11.0.0).    EPharmacy.RESTApi.Tests.Intergration    C:\Users\nakol\dev\work\e-pharmacy\server\tests\RESTApi.Tests.Intergration\RESTApi.Tests.Intergration.csproj    1   
leastprivilege commented 2 years ago

IdentityServer4 is "done" and there will be no more updates. You have to use the package it references.

All new development is happening here: https://github.com/DuendeSoftware/IdentityServer