Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core ASP.NET Core 2.2.0身份脚手架仍在使用bootstrap 3_Asp.net Core_Asp.net Core Mvc_Entity Framework Core - Fatal编程技术网

Asp.net core ASP.NET Core 2.2.0身份脚手架仍在使用bootstrap 3

Asp.net core ASP.NET Core 2.2.0身份脚手架仍在使用bootstrap 3,asp.net-core,asp.net-core-mvc,entity-framework-core,Asp.net Core,Asp.net Core Mvc,Entity Framework Core,我正在运行身份代码生成器 dotnet aspnet-codegenerator identity -dc WebApplication1.Data.ApplicationDbContext --force 但是输出的页面是基于bootstrap3的——我读到的建议应该是bootstrap4eg 要获得基于BS4的身份页,我还需要做些什么 注: 我已确保工具是最新的: dotnet tool update --global dotnet-aspnet-codegenerator Tool 'd

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

dotnet aspnet-codegenerator identity -dc WebApplication1.Data.ApplicationDbContext --force
但是输出的页面是基于bootstrap3的——我读到的建议应该是bootstrap4eg

要获得基于BS4的身份页,我还需要做些什么

注:

我已确保工具是最新的:

dotnet tool update --global dotnet-aspnet-codegenerator
Tool 'dotnet-aspnet-codegenerator' was reinstalled with the latest stable version (version '2.2.0').
你试过这个吗:

services.AddDefaultIdentity<IdentityUser>()
        .AddDefaultUI(UIFramework.Bootstrap4) // specifying the boostrap4 here
        .AddEntityFrameworkStores<ApplicationDbContext>();
你试过这个吗:

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