From a305b1cab098b4d6991f530f7e9ddc8115adc7a4 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Sat, 23 Nov 2024 15:36:51 -0500 Subject: [PATCH] chore: Adjust output path, uno test only --- build/ci/.azure-devops-wasm-uitests.yml | 2 +- .../Tests/Windows_UI/Given_WeakEventHelper.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/ci/.azure-devops-wasm-uitests.yml b/build/ci/.azure-devops-wasm-uitests.yml index 8ba323358a8c..dcab7f230f47 100644 --- a/build/ci/.azure-devops-wasm-uitests.yml +++ b/build/ci/.azure-devops-wasm-uitests.yml @@ -42,7 +42,7 @@ jobs: - task: CopyFiles@2 displayName: 'Publish Wasm Site (net9.0)' inputs: - SourceFolder: $(build.sourcesdirectory)/src/SamplesApp/SamplesApp.Wasm/bin/Release/net9.0/browser-wasm/publish/wwwroot + SourceFolder: $(build.sourcesdirectory)/src/SamplesApp/SamplesApp.Wasm/bin/Release/net9.0/publish/wwwroot Contents: '**/*.*' TargetFolder: $(build.artifactstagingdirectory)/site-net9.0-$(XAML_FLAVOR_BUILD) CleanTargetFolder: false diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI/Given_WeakEventHelper.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI/Given_WeakEventHelper.cs index 2aa340968942..29ffc612d36c 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI/Given_WeakEventHelper.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI/Given_WeakEventHelper.cs @@ -1,4 +1,5 @@ -using System; +#if HAS_UNO +using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; @@ -231,3 +232,4 @@ public void RegisterTrimCallback(Func callback, object target) public bool? Invoke() => _callback?.Invoke(_target); } } +#endif