Rendering Template:
"); -- var helperResult = template(title); -- helperResult.WriteTo(Output, HtmlEncoder); -- } --} -- --This website has not been approved yet. Visit www.contoso.com for more information.
--© @Model.CopyrightYear - My ASP.NET Application
-+@using TagHelpersWebSite.Models -+@using Microsoft.AspNetCore.Mvc.Razor -+ -+@model WebsiteContext -+@{ -+ ViewBag.Title = "Home Page"; -+} -+ -+@addTagHelper *, TagHelpersWebSite -+ -+@section css { -+ -+} -+ -+@functions { -+ public void RenderTemplate(string title, FuncRendering Template:
"); -+ var helperResult = template(title); -+ helperResult.WriteTo(Output, HtmlEncoder); -+ } -+} -+ -+This website has not been approved yet. Visit www.contoso.com for more information.
-+© @Model.CopyrightYear - My ASP.NET Application
- } -\ No newline at end of file -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.razor -index cd87ea9518..79929d7832 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.razor -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.razor -@@ -1,16 +1,16 @@ --@page "/error" -- -- ---- Swapping to Development environment will display more detailed information about the error that occurred. --
---- The Development environment shouldn't be enabled for deployed applications. -- It can result in displaying sensitive information from exceptions to end users. -- For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development -- and restarting the app. -+@page "/error" -+ -+ -+
-+ Swapping to Development environment will display more detailed information about the error that occurred. -+
-+-+ The Development environment shouldn't be enabled for deployed applications. -+ It can result in displaying sensitive information from exceptions to end users. -+ For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development -+ and restarting the app. -
-\ No newline at end of file -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.Development.json -index 2defd04095..51737579ef 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.Development.json -@@ -1,10 +1,10 @@ --{ -- "DetailedErrors": true, -- "Logging": { -- "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -- } -- } --} -+{ -+ "DetailedErrors": true, -+ "Logging": { -+ "LogLevel": { -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" -+ } -+ } -+} -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.json -index 238d518d39..d9d9a9bff6 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/appsettings.json -@@ -1,8 +1,8 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -+ "Default": "Information", -+ "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/appsettings.json -index f5ef230f62..1f292413bb 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/appsettings.json -@@ -1,8 +1,8 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -+ "Default": "Information", -+ "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.json -index 238d518d39..d9d9a9bff6 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/appsettings.json -@@ -1,8 +1,8 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -+ "Default": "Information", -+ "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.json -index 238d518d39..d9d9a9bff6 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/appsettings.json -@@ -1,8 +1,8 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -+ "Default": "Information", -+ "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, -diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.Development.json -index c9719186fb..a1213fe246 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - ////#if (IndividualLocalAuth) - // }, -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json -index 8861bc9d6c..7bed5bd8f8 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json -@@ -10,9 +10,9 @@ - ////#endif - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - }, - ////#if (IndividualLocalAuth) -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.Development.json -index c9719186fb..a1213fe246 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - ////#if (IndividualLocalAuth) - // }, -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json -index 8861bc9d6c..7bed5bd8f8 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json -@@ -10,9 +10,9 @@ - ////#endif - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - }, - ////#if (IndividualLocalAuth) -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.Development.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.Development.json -index dba68eb124..8983e0fc1c 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.Development.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.Development.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - } - } -diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.json -index d48929ec8c..d9d9a9bff6 100644 ---- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.json -+++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/appsettings.json -@@ -1,9 +1,9 @@ - { - "Logging": { - "LogLevel": { -- "Default": "Information", -- "Microsoft": "Warning", -- "Microsoft.Hosting.Lifetime": "Information" -+ "Default": "Information", -+ "Microsoft": "Warning", -+ "Microsoft.Hosting.Lifetime": "Information" - } - }, - "AllowedHosts": "*" -diff --git a/src/Security/Authorization/Core/ref/Microsoft.AspNetCore.Authorization.csproj b/src/Security/Authorization/Core/ref/Microsoft.AspNetCore.Authorization.csproj -index 6c84d4e54d..7f1202a788 100644 ---- a/src/Security/Authorization/Core/ref/Microsoft.AspNetCore.Authorization.csproj -+++ b/src/Security/Authorization/Core/ref/Microsoft.AspNetCore.Authorization.csproj -@@ -2,6 +2,7 @@ -