I\'ve created a test project using:
dotnet new razor --auth Individual --output Test
This creates a Startup.cs that contains:
p
Might help someone else: If you add asp.net identity through scaffolding to an existing project, you'll need to edit the IdentityHostingStartup.cs
and change the services there instead of in your startup class:
services.AddIdentity()
.AddDefaultUI()
.AddRoles()
.AddRoleManager>()
.AddDefaultTokenProviders()
.AddEntityFrameworkStores();
And then you can use the role manager in your seeding.