From 95efeeabcf98e8b66444e0188e190f5afce80615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Knippers?= Date: Tue, 14 Dec 2021 12:25:25 +0100 Subject: [PATCH] Ensure Umbraco Razor files are compiled into .Views.dll It worked properly if the Umbraco files are on disk before a build but when the files are not there yet or a dotnet clean is done first the files are not compiled. This is often the case on build servers that start with a clean working directory for each build. Using this target we simply ensure the files are included as "Content" which Razor will scan for .cshtml files in their "ResolveRazorGenerateInputs" target. --- .../buildTransitive/Umbraco.Cms.StaticAssets.targets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/NuSpecs/buildTransitive/Umbraco.Cms.StaticAssets.targets b/build/NuSpecs/buildTransitive/Umbraco.Cms.StaticAssets.targets index f9ee41e139..611af887f9 100644 --- a/build/NuSpecs/buildTransitive/Umbraco.Cms.StaticAssets.targets +++ b/build/NuSpecs/buildTransitive/Umbraco.Cms.StaticAssets.targets @@ -87,4 +87,10 @@ + + + + + +