Search code examples
c#asp.net-coresecuritymembership

How to use MemberShip in .Net Core 5


How to use MemberShip in .Net Core because System.web.Security is not available in references at all It has another way or something needs to be installed.

Target FrameWork=5.0

enter image description here


Solution

  • MemberShip is not compatible in asp.net core, so you cannot use it. If you don't want to migrate the database schema, you can use Identity instead.

    https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-5.0&tabs=visual-studio