Correct. With very few exceptions none of the Microsoft.AspNet
assemblies will work as they all are for .NET Framework. .NET Core/6 apps use Microsoft.AspNetCore
. For Identity you should use Microsoft.AspNetCore.Identity
as discussed here. Note that this is not just a simple change in packaging. You'll need to migrate your system as well so be sure to read the docs.
Also note you shouldn't be referencing Microsoft.AspNet.WebApi
anymore either. If you are using this just for the HttpClient
helpers then there is a new package for that.
Finally be aware that .NET 5 is out of support. You need to go ahead and upgrade to .NET 6 as well. No reason to target .NET 5.