What is the difference between Microsoft.AspNet.Identity.Core and Microsoft.AspNetCore.Identity?

I am implementing the AspNet identity in ASP.NET MVC application. But when I am going through the online materials I am quite confused about the 2 dlls Microsoft.Aspnet.Identity.Core and Microsoft.AspNetCore.Identity.

I do know that Microsoft.AspNetCore.Identity is to be used in .NET Core applications but Microsoft.Aspnet.Identity.Core seems to have no recent updates and found that it is not even letting the user to login (throwing Failure in custom asp identity). So my question is can I use Microsoft.AspNetCore.Identity in MVC application or should I stick to Microsoft.Aspnet.Identity.Core?


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Microsoft.AspNet.Identity.Core has nothing to do with ASP.NET Core, it’s just a way to tell that it is the main (hence the word “core”) library of ASP.NET Identity (pre-ASP.NET Core version). Since you are not using ASP.NET Core, you have to use Microsoft.AspNet.Identity.Core.

Basically, you have two scenarios:

  • Either you’re using ASP.NET Core, in which case you’ll have to use Microsoft.AspNetCore.Identity
  • Or you’re using an ASP.NET version before ASP.NET Core, and you’ll have to use Microsoft.AspNet.Identity.Core.

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x