From 2876d0b179feab0bf12f6a68b9b9f0496b1c73ed Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 1 Sep 2021 10:57:21 +0200 Subject: [PATCH] Handle the msbuild copy in two steps, so we can override the wwwroot/umbraco folder from outside, using the following in the project csproj. my-secret-loginpanel it will now copy to wwwroot/my-secret-loginpanel instead of wwwroot/umbraco --- .../NuSpecs/build/Umbraco.Cms.StaticAssets.targets | 14 +++++++++++--- .../Install/InstallController.cs | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build/NuSpecs/build/Umbraco.Cms.StaticAssets.targets b/build/NuSpecs/build/Umbraco.Cms.StaticAssets.targets index 37b65e320c..0d712e083b 100644 --- a/build/NuSpecs/build/Umbraco.Cms.StaticAssets.targets +++ b/build/NuSpecs/build/Umbraco.Cms.StaticAssets.targets @@ -1,18 +1,26 @@  - $(MSBuildThisFileDirectory)..\content\**\*.* + $(MSBuildThisFileDirectory)..\content\umbraco\**\*.* + $(MSBuildThisFileDirectory)..\content\wwwroot\umbraco\**\*.* + umbraco + + + @@ -24,7 +32,7 @@ - + diff --git a/src/Umbraco.Web.BackOffice/Install/InstallController.cs b/src/Umbraco.Web.BackOffice/Install/InstallController.cs index 6e5b3314db..ca29a508c4 100644 --- a/src/Umbraco.Web.BackOffice/Install/InstallController.cs +++ b/src/Umbraco.Web.BackOffice/Install/InstallController.cs @@ -93,7 +93,7 @@ namespace Umbraco.Cms.Web.BackOffice.Install await _installHelper.SetInstallStatusAsync(false, ""); - return View(Path.Combine(baseFolder , Cms.Core.Constants.Web.Mvc.InstallArea, nameof(Index) + ".cshtml")); + return View(Path.Combine(Constants.SystemDirectories.Umbraco.TrimStart("~") , Cms.Core.Constants.Web.Mvc.InstallArea, nameof(Index) + ".cshtml")); } ///