diff --git a/Kudu.Services.Web/Kudu.Services.Web.csproj b/Kudu.Services.Web/Kudu.Services.Web.csproj
index effe427a..7c573d44 100644
--- a/Kudu.Services.Web/Kudu.Services.Web.csproj
+++ b/Kudu.Services.Web/Kudu.Services.Web.csproj
@@ -51,11 +51,11 @@
true
PreserveNewest
-
+
true
PreserveNewest
-
+
true
PreserveNewest
diff --git a/Kudu.Services.Web/KuduWebUtil.cs b/Kudu.Services.Web/KuduWebUtil.cs
index b6cde118..a550a132 100644
--- a/Kudu.Services.Web/KuduWebUtil.cs
+++ b/Kudu.Services.Web/KuduWebUtil.cs
@@ -236,7 +236,7 @@ internal static void MigrateToNetCorePatch(IEnvironment environment)
// Dynamic Install should just contain dotnet
if (fileText.Contains("benv") && fileText.Contains("dotnet") && isRunningOnAzure)
{
- FileSystemHelpers.WriteAllText(gitPostReceiveHookFile, fileText.Replace("benv dotnet=2.2", ""));
+ FileSystemHelpers.WriteAllText(gitPostReceiveHookFile, fileText.Replace("benv dotnet=2.2 dotnet", ""));
}
}
diff --git a/Kudu.Services.Web/Pages/DebugConsole/LinuxConsole.cshtml b/Kudu.Services.Web/Pages/DebugConsole/LinuxConsole.cshtml
index 80a340e0..acb84265 100644
--- a/Kudu.Services.Web/Pages/DebugConsole/LinuxConsole.cshtml
+++ b/Kudu.Services.Web/Pages/DebugConsole/LinuxConsole.cshtml
@@ -1,6 +1,6 @@
@{
ViewData["Title"] = "Diagnostic Console";
- Layout = "~/Pages/_Layout.cshtml";
+ Layout = "~/Pages/_Layout.Legacy.cshtml";
}
diff --git a/Kudu.Services.Web/Pages/DebugConsole/WindowsConsole.cshtml b/Kudu.Services.Web/Pages/DebugConsole/WindowsConsole.cshtml
index 098e1c74..8efa71b2 100644
--- a/Kudu.Services.Web/Pages/DebugConsole/WindowsConsole.cshtml
+++ b/Kudu.Services.Web/Pages/DebugConsole/WindowsConsole.cshtml
@@ -1,6 +1,6 @@
@{
ViewData["Title"] = "Diagnostic Console";
- Layout = "~/Pages/_Layout.cshtml";
+ Layout = "~/Pages/_Layout.Legacy.cshtml";
}
diff --git a/Kudu.Services.Web/Pages/DebugConsole2/DebugConsole2Controller.cs b/Kudu.Services.Web/Pages/DebugConsole2/DebugConsole2Controller.cs
deleted file mode 100644
index 8f0addf2..00000000
--- a/Kudu.Services.Web/Pages/DebugConsole2/DebugConsole2Controller.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Microsoft.AspNetCore.Mvc;
-using Kudu.Core.Helpers;
-
-namespace Kudu.Services.Web.Pages.NewUI.DebugConsole2
-{
- // CORE NOTE This is a new shim to get the right console to load; couldn't do it the way it was originally done
- // due to the differences in the way the new razor pages work
- public class DebugConsole2Controller : Controller
- {
- public ActionResult Index()
- {
- var os = OSDetector.IsOnWindows() ? "Windows" : "Linux";
- return View($"~/Pages/DebugConsole2/{os}Console2.cshtml");
- }
-
- public ActionResult LinuxConsole()
- {
- return View($"~/Pages/DebugConsole/LinuxConsole2.cshtml");
- }
-
- public ActionResult WindowsConsole()
- {
- return View($"~/Pages/DebugConsole2/WindowsConsole2.cshtml");
- }
-
- }
-}
\ No newline at end of file
diff --git a/Kudu.Services.Web/Pages/Error.cshtml b/Kudu.Services.Web/Pages/Error.cshtml
index a6ddc94b..d6364395 100644
--- a/Kudu.Services.Web/Pages/Error.cshtml
+++ b/Kudu.Services.Web/Pages/Error.cshtml
@@ -5,7 +5,7 @@
}
- Error.
+ Error.
An error occurred while processing your request.
diff --git a/Kudu.Services.Web/Pages/Index.cshtml b/Kudu.Services.Web/Pages/Index.cshtml
index 29228f0d..9c516dee 100644
--- a/Kudu.Services.Web/Pages/Index.cshtml
+++ b/Kudu.Services.Web/Pages/Index.cshtml
@@ -37,19 +37,15 @@
@if (Kudu.Core.Environment.IsAzureEnvironment())
{
-
+
}
-@if (Kudu.Core.Environment.IsAzureEnvironment())
-{
-
-}
@{
var workerIdHash = System.Environment.GetEnvironmentVariable(Constants.AzureWebsiteInstanceId);
- var workerIdShortHash = workerIdHash?.Substring(0, 12);
+ var workerIdShortHash = workerIdHash?.Substring(0, 8);
const string version = "Preview";
var showLearningBanner = !deploymentManager.GetResults().Any();
var welcomeBannerDisplayVal = showLearningBanner ? "display:block" : "display:none";
@@ -65,7 +61,7 @@
Site UpTime: @Tracing.TraceMiddleware.UpTime.ToString(@"dd\.hh\:mm\:ss") | Site Folder: @PathResolver.ResolveRootPath() | Temp Folder: @System.IO.Path.GetTempPath()
Kudu Attached to Instance: @workerIdShortHash |
-