Skip to content

Commit

Permalink
Ignore NU1703 for Mac Catalyst projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Jul 22, 2021
1 parent cb7a820 commit af9606a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<Import Project="eng\AndroidX.targets" />
<Import Project="eng\Microsoft.Extensions.targets" />

<PropertyGroup>
<!--
NOTE: Ignore warnings for using Xamarin.iOS in Catalyst
error NU1703: 'xunit.core 2.4.1' was resolved as a dependency of 'Microsoft.Maui.TestUtils.DeviceTests', but the dependency is using 'Xamarin.iOS' while 'Microsoft.Maui.TestUtils.DeviceTests' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects.
-->
<NoWarn Condition=" $(TargetFramework.Contains('maccatalyst')) ">$(NoWarn);NU1703</NoWarn>
</PropertyGroup>

<!-- Temporarily disable the linker for net6.0-ios and net6.0-maccatalyst until we get machine pools with Big Sur and Xcode 12.5 is stable -->
<PropertyGroup Condition=" '$(CI)' == 'true' ">
<PublishTrimmed Condition=" '$(TargetFramework)' == 'net6.0-ios' or '$(TargetFramework)' == 'net6.0-maccatalyst' ">false</PublishTrimmed>
Expand Down

0 comments on commit af9606a

Please sign in to comment.