From 05990683cff61e3696df2057d469248476957913 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 13 Apr 2020 17:53:54 +0100 Subject: [PATCH] Unconditionally enable razor pages in hosted template. Fixes #20791 (#20792) --- .../content/ComponentsWebAssembly-CSharp/Server/Startup.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ProjectTemplates/ComponentsWebAssembly.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Startup.cs b/src/ProjectTemplates/ComponentsWebAssembly.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Startup.cs index 3dfd09e9c5..cfac34ab31 100644 --- a/src/ProjectTemplates/ComponentsWebAssembly.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Startup.cs +++ b/src/ProjectTemplates/ComponentsWebAssembly.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Startup.cs @@ -73,9 +73,7 @@ namespace ComponentsWebAssembly_CSharp.Server #endif services.AddControllersWithViews(); -#if (IndividualLocalAuth) services.AddRazorPages(); -#endif } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -119,9 +117,7 @@ namespace ComponentsWebAssembly_CSharp.Server #endif app.UseEndpoints(endpoints => { -#if (IndividualLocalAuth) endpoints.MapRazorPages(); -#endif endpoints.MapControllers(); endpoints.MapFallbackToFile("index.html"); });