O'Reilly logo

ASP.NET Core: Cloud-ready, Enterprise Web Application Development by James Singleton, Valerio De Sanctis, Mugilan T. S. Ragupathi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing AspNetCore.Identity

In order to set up and configure the AspNetCore.Identity framework, we need to install the required NuGet package and perform a number of code changes in some of our project's entity classes.

Adding the package

The first thing we're going to do is to check for the existence of the Microsoft.AspNetCore.Identity.EntityFrameworkCorelibrary package, which we should have already added in Chapter 4, The Data Model. If we missed it, we can fix the issue in a number of ways.

If we like to use the Package Manager Console, we can select the appropriate tab and write the following command:

> 
Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore

If we prefer the Package Manager GUI interface, right-click in Solution ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required