Skip to content

Commit 5d16d4d

Browse files
committed
fix: Skip Android target on CI Linux for MAUI sample
The Android SDK has a Mono.Cecil XARRA7028 bug where RemoveRegisterAttribute cannot find System.Runtime v10.0.0.0 when building net10.0-android Exe projects on CI Linux runners. On CI Linux, fall back to net10.0 (library build) so the code still compiles and is validated. Locally and on CI Windows/macOS, the full platform TFMs are used including net10.0-android.
1 parent c0fcea1 commit 5d16d4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/examples/ReactiveUI.Samples.Maui/ReactiveUI.Samples.Maui.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net10.0-android</TargetFrameworks>
4+
<!-- Skip Android on CI Linux due to Android SDK Mono.Cecil XARRA7028 bug with System.Runtime v10.0.0.0.
5+
Remove the GITHUB_ACTIONS/Linux condition once the Android SDK ships a fix. -->
6+
<TargetFrameworks Condition="'$(GITHUB_ACTIONS)' == 'true' and $([MSBuild]::IsOSPlatform('linux'))">net10.0</TargetFrameworks>
7+
<TargetFrameworks Condition="'$(GITHUB_ACTIONS)' != 'true' or !$([MSBuild]::IsOSPlatform('linux'))">net10.0-android</TargetFrameworks>
58
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) or $([MSBuild]::IsOSPlatform('osx'))">$(TargetFrameworks);net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
69
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
7-
<OutputType>Exe</OutputType>
10+
<OutputType Condition="'$(TargetFramework)' != 'net10.0'">Exe</OutputType>
811
<UseMaui>true</UseMaui>
912
<Nullable>enable</Nullable>
1013
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)