Skip to content

Commit 1266a3e

Browse files
Enable conditionally skipping the Mac Catalyst target
1 parent 95432c7 commit 1266a3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
</PropertyGroup>
1010

1111
<PropertyGroup>
12-
<TargetFrameworks>net472;netstandard2.0;net8.0;net9.0;net9.0-maccatalyst;net10.0;net10.0-maccatalyst</TargetFrameworks>
12+
<TargetFrameworks>net472;netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
1313
<Platforms>x86;x64;ARM32;ARM64;AnyCPU</Platforms>
1414
</PropertyGroup>
1515

16+
<PropertyGroup Condition="'$(SHARPHOOK_SKIP_MACCATALYST)' == '' Or '$(SHARPHOOK_SKIP_MACCATALYST)' == 'false'">
17+
<TargetFrameworks>$(TargetFrameworks);net9.0-maccatalyst;net10.0-maccatalyst</TargetFrameworks>
18+
</PropertyGroup>
19+
1620
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
1721
<IsAotCompatible>true</IsAotCompatible>
1822
</PropertyGroup>

0 commit comments

Comments
 (0)