From 578d6ed0a4be306e18fe1bb096c7eaf6c4da9e1d Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Mon, 25 Apr 2022 18:35:16 -0700 Subject: [PATCH] Handle content hiding separately for hot restart scenarios (#6341) --- ...AspNetCore.Components.WebView.Maui.targets | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/BlazorWebView/src/Maui/build/Microsoft.AspNetCore.Components.WebView.Maui.targets b/src/BlazorWebView/src/Maui/build/Microsoft.AspNetCore.Components.WebView.Maui.targets index 9e0599dd73b7..71cfd5e4293b 100644 --- a/src/BlazorWebView/src/Maui/build/Microsoft.AspNetCore.Components.WebView.Maui.targets +++ b/src/BlazorWebView/src/Maui/build/Microsoft.AspNetCore.Components.WebView.Maui.targets @@ -58,7 +58,7 @@ - + <_NonWWWRootContent Include="@(Content)" Exclude="wwwroot/**/*" /> @@ -71,9 +71,28 @@ + + + + + + - - + + + + + <_NonWWWRootContent Include="@(Content)" Exclude="wwwroot/**/*" /> + + <_TemporaryHiddenContent Include="@(Content)" Exclude="@(_NonWWWRootContent)" /> + + <_TemporaryHiddenContent Include="Pages\**\*.razor.css" /> + <_TemporaryHiddenContent Include="Shared\**\*.razor.css" /> + + + + +