ASP.NET Core 2.2.0 Identity Scaffolding still using bootstrap 3

asp.net-core asp.net-core-mvc entity-framework-core

Question

I am running the identity code generator

dotnet aspnet-codegenerator identity -dc WebApplication1.Data.ApplicationDbContext --force

but the pages that are output are based on bootstrap 3 - what I've read suggests they should be bootstrap 4 (eg https://github.com/aspnet/Scaffolding/issues/712#issuecomment-420143440)

Is there something additional that I need to do to get BS4 based identity pages?

Notes:

I have ensured the tool is up to date:

dotnet tool update --global dotnet-aspnet-codegenerator
Tool 'dotnet-aspnet-codegenerator' was reinstalled with the latest stable version (version '2.2.0').
1
1
1/4/2019 8:27:45 AM

Accepted Answer

Have you tried this:

services.AddDefaultIdentity<IdentityUser>()
        .AddDefaultUI(UIFramework.Bootstrap4) // specifying the boostrap4 here
        .AddEntityFrameworkStores<ApplicationDbContext>();
5
1/3/2019 5:22:33 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow