From 2e0349b7baa964dc7e7f88f794ae2eb61422e10d Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 13 Oct 2023 13:57:01 +0300 Subject: [PATCH 1/2] ci: Build with PublishTrimmed --- build-samples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-samples.yml b/build-samples.yml index ed53a1faa..669576dcb 100644 --- a/build-samples.yml +++ b/build-samples.yml @@ -23,7 +23,7 @@ steps: Set-PSDebug -Trace 1 Write-Host "${{ parameters.path }}" - & $env:msbuildpath "${{ parameters.path }}" /r /p:Configuration=Release /p:WasmShellMonoRuntimeExecutionMode=Interpreter /p:PublishTrimmed=false /p:WasmShellILLinkerEnabled=false /p:RunAOTCompilation=false /p:MtouchUseLlvm=false /ds "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" ; + & $env:msbuildpath "${{ parameters.path }}" /r /p:Configuration=Release /p:WasmShellMonoRuntimeExecutionMode=Interpreter /p:PublishTrimmed=true /p:WasmShellILLinkerEnabled=false /p:RunAOTCompilation=false /p:MtouchUseLlvm=false /ds "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" ; $folderPath = [System.IO.Path]::GetDirectoryName("${{ parameters.path }}"); @@ -49,4 +49,4 @@ steps: inputs: PathtoPublish: $(build.artifactstagingdirectory) ArtifactName: samples - ArtifactType: Container \ No newline at end of file + ArtifactType: Container From 0b62b6ec7e4180869882de9d009c53b888350431 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 13 Oct 2023 15:09:18 +0300 Subject: [PATCH 2/2] chore: Dummy change to build sample in CI --- .../XamlBrewerUnoApp/XamlBrewerUnoApp/Shell.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/XamlBrewerUnoApp/XamlBrewerUnoApp/XamlBrewerUnoApp/Shell.xaml.cs b/UI/XamlBrewerUnoApp/XamlBrewerUnoApp/XamlBrewerUnoApp/Shell.xaml.cs index 1c8edb684..e411f8e67 100644 --- a/UI/XamlBrewerUnoApp/XamlBrewerUnoApp/XamlBrewerUnoApp/Shell.xaml.cs +++ b/UI/XamlBrewerUnoApp/XamlBrewerUnoApp/XamlBrewerUnoApp/Shell.xaml.cs @@ -39,6 +39,7 @@ private void ApplyTheme() root.RequestedTheme = settings.IsLightTheme ? ElementTheme.Light : ElementTheme.Dark; }; } + private void Root_ActualThemeChanged(FrameworkElement sender, object args) { // Theme change refinements (e.g. content dialogs and title bar).