Feature/update net 5 (#487)
* Updated ApplicationCore to net 5 * Updated Infrastructure project to net 5 * Updated BlazorShared project to net 5 * Updated PublicApi project to net 5 * Updated Web mvc project to net 5 * Updated BlazorAdmin project to net-5 * Updated FunctionalTests to net 5 * Updated UnitTests project to net 5 * Updated IntegrationTests project to net 5 * Fixed CSS specific bug in BlazorAdmin project * Updated github action worflow yaml * Changes the name to only .NET * Removed hardcoded minor version from github action workflow. * Removed commneted code. * Removed minor versions from the docker file * Updated dotnet-ef tool version configuration to net-5 * Removed old migration plans * Added net5 migration plans * Updated infrastructure projecti setting. * Removed database error page related configuration * Removed commented package.
This commit is contained in:
@@ -161,6 +161,8 @@ namespace Microsoft.eShopWeb.Web
|
||||
services.AddScoped<HttpService>();
|
||||
services.AddBlazorServices();
|
||||
|
||||
services.AddDatabaseDeveloperPageExceptionFilter();
|
||||
|
||||
_services = services; // used to debug registered services
|
||||
}
|
||||
|
||||
@@ -189,8 +191,8 @@ namespace Microsoft.eShopWeb.Web
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseShowAllServicesMiddleware();
|
||||
app.UseDatabaseErrorPage();
|
||||
app.UseShowAllServicesMiddleware();
|
||||
app.UseMigrationsEndPoint();
|
||||
app.UseWebAssemblyDebugging();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user