File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,10 @@ jobs:
288288 $platform = "${{ matrix.platform }}"
289289 $framework = "${{ matrix.framework }}"
290290 $rid = "${{ matrix.rid }}"
291+ $dotnetVersion = "${{ matrix.dotnet }}"
292+
293+ # Disable XAML/Resource Trimming for net10 due to https://github.com/unoplatform/uno/issues/21731
294+ $enableXamlTrimming = $dotnetVersion -ne "10.0"
291295
292296 # Start timing
293297 $startTime = Get-Date
@@ -305,6 +309,7 @@ jobs:
305309 }
306310
307311 Write-Host "Found project: $($projectFile.FullName)"
312+ Write-Host "XAML/Resource Trimming enabled: $enableXamlTrimming"
308313
309314 switch ($platform) {
310315 "android" {
@@ -335,8 +340,8 @@ jobs:
335340 dotnet publish $projectFile.FullName `
336341 -f $framework `
337342 -c Release `
338- -p:UnoXamlResourcesTrimming=true `
339- -p:UnoEnableXamlTrimming=true `
343+ -p:UnoXamlResourcesTrimming=$enableXamlTrimming `
344+ -p:UnoEnableXamlTrimming=$enableXamlTrimming `
340345 -o publish `
341346 /bl:build.binlog
342347 }
@@ -363,8 +368,8 @@ jobs:
363368 -r $rid `
364369 --self-contained true `
365370 -p:PublishTrimmed=true `
366- -p:UnoXamlResourcesTrimming=true `
367- -p:UnoEnableXamlTrimming=true `
371+ -p:UnoXamlResourcesTrimming=$enableXamlTrimming `
372+ -p:UnoEnableXamlTrimming=$enableXamlTrimming `
368373 -o publish `
369374 /bl:build.binlog
370375 }
You can’t perform that action at this time.
0 commit comments