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 ...

Get ASP.NET Core: Cloud-ready, Enterprise Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.