From 0ecb274e430a73accc730887ca949de9d6505f6f Mon Sep 17 00:00:00 2001 From: Nick Randolph Date: Sat, 16 Mar 2024 00:13:13 +1100 Subject: [PATCH] fix: Moving windows/webview2 workaround to auth MSAL library targets --- .../build/Package.targets | 37 +++++++++++++++++-- .../TestHarness.Windows.csproj | 30 +-------------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/src/Uno.Extensions.Authentication.MSAL/build/Package.targets b/src/Uno.Extensions.Authentication.MSAL/build/Package.targets index 4206aaa394..f2226f16ea 100644 --- a/src/Uno.Extensions.Authentication.MSAL/build/Package.targets +++ b/src/Uno.Extensions.Authentication.MSAL/build/Package.targets @@ -1,5 +1,34 @@ - - - - \ No newline at end of file + + + + + + + + + <_WebView2CoreFilesToExclude Include="@(ResolvedFileToPublish)" Condition="'%(Filename)' == 'Microsoft.Web.WebView2.Core'"/> + + + <_WebView2CoreFilesToExclude Remove="@(_WebView2CoreFilesToExclude)" Condition="$([System.String]::Copy(%(FullPath)).Contains('.nuget'))"/> + + + + + + + + + <_WebView2CoreOutputsToExclude Include="@(PackagingOutputs)" Condition="'%(Filename)' == 'Microsoft.Web.WebView2.Core'"/> + + + <_WebView2CoreOutputsToExclude Remove="@(_WebView2CoreOutputsToExclude)" Condition="$([System.String]::Copy(%(FullPath)).Contains('.nuget'))"/> + + + + + diff --git a/testing/TestHarness/TestHarness.Windows/TestHarness.Windows.csproj b/testing/TestHarness/TestHarness.Windows/TestHarness.Windows.csproj index 1eab469d02..19d37a9f38 100644 --- a/testing/TestHarness/TestHarness.Windows/TestHarness.Windows.csproj +++ b/testing/TestHarness/TestHarness.Windows/TestHarness.Windows.csproj @@ -94,34 +94,6 @@ + - - - - - - <_WebView2CoreFilesToExclude Include="@(ResolvedFileToPublish)" Condition="'%(Filename)' == 'Microsoft.Web.WebView2.Core'"/> - - - <_WebView2CoreFilesToExclude Remove="@(_WebView2CoreFilesToExclude)" Condition="$([System.String]::Copy(%(FullPath)).Contains('.nuget'))"/> - - - - - - - - - <_WebView2CoreOutputsToExclude Include="@(PackagingOutputs)" Condition="'%(Filename)' == 'Microsoft.Web.WebView2.Core'"/> - - - <_WebView2CoreOutputsToExclude Remove="@(_WebView2CoreOutputsToExclude)" Condition="$([System.String]::Copy(%(FullPath)).Contains('.nuget'))"/> - - - -