ASP.NET Core 2.2.0身份支架仍在使用引导3

Pau*_*aul 1 entity-framework-core asp.net-core-mvc asp.net-core

我正在运行身份代码生成器

dotnet aspnet-codegenerator identity -dc WebApplication1.Data.ApplicationDbContext --force
Run Code Online (Sandbox Code Playgroud)

但是输出的页面基于引导程序3-我读过的书建议它们应该是引导程序4(例如https://github.com/aspnet/Scaffolding/issues/712#issuecomment-420143440

要获得基于BS4的身份页面,我还需要做些其他事情吗?

笔记:

我确保该工具是最新的:

dotnet tool update --global dotnet-aspnet-codegenerator
Tool 'dotnet-aspnet-codegenerator' was reinstalled with the latest stable version (version '2.2.0').
Run Code Online (Sandbox Code Playgroud)

Tan*_*jel 5

您是否尝试过:

services.AddDefaultIdentity<IdentityUser>()
        .AddDefaultUI(UIFramework.Bootstrap4) // specifying the boostrap4 here
        .AddEntityFrameworkStores<ApplicationDbContext>();
Run Code Online (Sandbox Code Playgroud)