You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft.Extensions.Logging 8.0.1
The library is using central package management and has transitive pinning enabled.
Create a second application project which targets net9.0 that depends on the library. Run dotnet restore on the application project.
Expected behavior
Packages will be restored
Actual behavior
Package restore fails with the following error message:
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Abstractions from 9.0.0 to 8.0.2. Reference the package directly from the project to select a different version.
Possible solution
Remove Microsoft.Extensions.Logging.Abstractions dependency from M.IM.Tokens. The 8.3.0 version of the package didn't have this dependency.
Additional context / logs / screenshots / links to code
There might be an existing issue for this, but I'm confused about what's written in it and the timeline so I'm not sure. Issue #3061 says this problem exists in 8.3.1, but the issue was opened before 8.3.1 was released. Additionally PR #3062 claims to fix issue #3061, and was created after the issue, but is actually the PR which introduced the problem.
The text was updated successfully, but these errors were encountered:
Which version of Microsoft.IdentityModel are you using?
8.3.1
Where is the issue?
Is this a new or an existing app?
This is an existing library that I attempted to upgrade to a new version of M.IM.Tokens
Repro
Create a library that targets netstandard2.0. Add the following dependencies to that library:
The library is using central package management and has transitive pinning enabled.
Create a second application project which targets net9.0 that depends on the library. Run
dotnet restore
on the application project.Expected behavior
Packages will be restored
Actual behavior
Package restore fails with the following error message:
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Abstractions from 9.0.0 to 8.0.2. Reference the package directly from the project to select a different version.
Possible solution
Remove Microsoft.Extensions.Logging.Abstractions dependency from M.IM.Tokens. The 8.3.0 version of the package didn't have this dependency.
Additional context / logs / screenshots / links to code
There might be an existing issue for this, but I'm confused about what's written in it and the timeline so I'm not sure. Issue #3061 says this problem exists in 8.3.1, but the issue was opened before 8.3.1 was released. Additionally PR #3062 claims to fix issue #3061, and was created after the issue, but is actually the PR which introduced the problem.
The text was updated successfully, but these errors were encountered: