【问题标题】:ASP.NET Core 2.2.0 Identity Scaffolding still using bootstrap 3ASP.NET Core 2.2.0 Identity Scaffolding 仍在使用 bootstrap 3
【发布时间】:2019-01-03 10:27:31
【问题描述】:

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

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

但输出的页面基于引导程序 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').

【问题讨论】:

    标签: asp.net-core asp.net-core-mvc entity-framework-core


    【解决方案1】:

    你试过了吗:

    services.AddDefaultIdentity<IdentityUser>()
            .AddDefaultUI(UIFramework.Bootstrap4) // specifying the boostrap4 here
            .AddEntityFrameworkStores<ApplicationDbContext>();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-18
      • 2017-06-25
      • 2020-04-21
      • 2021-12-20
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      • 2015-04-22
      相关资源
      最近更新 更多