代码之家  ›  专栏  ›  技术社区  ›  Paul

ASP.NET核心2.2.0标识脚手架仍在使用引导3

  •  0
  • Paul  · 技术社区  · 7 年前

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

    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').
    
    1 回复  |  直到 7 年前
        1
  •  4
  •   TanvirArjel    7 年前

    您是否尝试过:

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