admin管理员组

文章数量:1123147

I have a project that was using .NET 9 and has a bunch of Microsoft.AspNetCore... and Microsoft.EntityFrameworkCore... version 9.0 packages installed.

I'm trying to downgrade to .NET 8. I changed all of my projects from .NET 9 to 8. But when I try to use NuGet to change my package versions, I get a lot of errors like

Error (active) NU1202 Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 9.0.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package Microsoft.AspNetCore.Identity.EntityFrameworkCore 9.0.0 supports: net9.0 (.NETCoreApp,Version=v9.0)

Is there a way I can force NuGet to ignore those errors and install the packages? Since I'm going to ultimately change all of these 9.0 packages to 8.0, all of the packages will be compatible with each other and with my .NET version when I'm done, but I'm unable to change any of my packages to 8.0 because I keep getting this error since the packages will be temporarily incompatible with each other.

本文标签: cHow can I ignore NU1202 error and force NuGet packages to installStack Overflow