From 343d6e4b9a48d834e2a895ac90dfce6ba4df9f6c Mon Sep 17 00:00:00 2001 From: Isaac Levin <8878502+isaac2004@users.noreply.github.com> Date: Tue, 25 Jun 2019 12:00:28 -0400 Subject: [PATCH 1/2] Update Startup.cs Update to template to remove RazorPages extension if not an auth template --- .../content/StarterWeb-CSharp/Startup.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs index 915e26d1b1..928cdac151 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs @@ -120,7 +120,10 @@ namespace Company.WebApplication1 #else services.AddControllersWithViews(); #endif + +#if (OrganizationalAuth || IndividualAuth) services.AddRazorPages(); +#endif } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -160,7 +163,10 @@ namespace Company.WebApplication1 endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); + +#if (OrganizationalAuth || IndividualAuth) endpoints.MapRazorPages(); +#endif }); } } From 9e28412a7a05e689414733e1880dc65e001ee7f4 Mon Sep 17 00:00:00 2001 From: Isaac Levin Date: Sat, 29 Jun 2019 19:21:30 -0400 Subject: [PATCH 2/2] updates --- .../content/StarterWeb-CSharp/Startup.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs index 915e26d1b1..94c9ad5d37 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs @@ -120,7 +120,10 @@ namespace Company.WebApplication1 #else services.AddControllersWithViews(); #endif + +#if (Auth) services.AddRazorPages(); +#endif } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -160,7 +163,10 @@ namespace Company.WebApplication1 endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); + +#if (Auth) endpoints.MapRazorPages(); +#endif }); } }