From 6bbcf0d19b571bb8526d0317160f98bb6ba1c668 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sun, 18 Aug 2019 01:31:16 -0400 Subject: [PATCH] change default.cshtml to use static default.html cause Razor fails compiling remotely --- .../TechStacks.ServiceInterface/ClientRoutesService.cs | 5 +---- src/TechStacks/TechStacks/{default.cshtml => default.html} | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) rename src/TechStacks/TechStacks/{default.cshtml => default.html} (99%) diff --git a/src/TechStacks/TechStacks.ServiceInterface/ClientRoutesService.cs b/src/TechStacks/TechStacks.ServiceInterface/ClientRoutesService.cs index 8bbf43b..1698aa0 100644 --- a/src/TechStacks/TechStacks.ServiceInterface/ClientRoutesService.cs +++ b/src/TechStacks/TechStacks.ServiceInterface/ClientRoutesService.cs @@ -56,10 +56,7 @@ public object Any(FallbackForClientRoutes request) public object AngularJsApp() { //Return default.cshtml for unmatched requests so routing is handled on the client - return new HttpResult - { - View = "/default.cshtml" - }; + return new HttpResult(VirtualFileSources.GetFile("/default.html")); } public object Any(ClientAllTechnologyStacks request) diff --git a/src/TechStacks/TechStacks/default.cshtml b/src/TechStacks/TechStacks/default.html similarity index 99% rename from src/TechStacks/TechStacks/default.cshtml rename to src/TechStacks/TechStacks/default.html index 2d927d2..09174bf 100644 --- a/src/TechStacks/TechStacks/default.cshtml +++ b/src/TechStacks/TechStacks/default.html @@ -1,5 +1,4 @@ -@inherits ViewPage - +