Avoid linking to non-existent System.Net.Security.Native on tvOS (#87605)
authorFilip Navara <navara@emclient.com>
Thu, 15 Jun 2023 14:15:33 +0000 (16:15 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2023 14:15:33 +0000 (07:15 -0700)
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets

index 2412bd4..d758e3b 100644 (file)
@@ -64,7 +64,7 @@ The .NET Foundation licenses this file to you under the MIT license.
       <NetCoreAppNativeLibrary Include="System.Native" />
       <NetCoreAppNativeLibrary Include="System.Globalization.Native" Condition="'$(StaticICULinking)' != 'true' and '$(InvariantGlobalization)' != 'true'" />
       <NetCoreAppNativeLibrary Include="System.IO.Compression.Native" />
-      <NetCoreAppNativeLibrary Include="System.Net.Security.Native" />
+      <NetCoreAppNativeLibrary Include="System.Net.Security.Native" Condition="!$(_targetOS.StartsWith('tvos'))" />
       <NetCoreAppNativeLibrary Include="System.Security.Cryptography.Native.Apple" Condition="'$(_IsApplePlatform)' == 'true'" />
       <!-- Not compliant for iOS-like platforms -->
       <NetCoreAppNativeLibrary Include="System.Security.Cryptography.Native.OpenSsl" Condition="'$(StaticOpenSslLinking)' != 'true' and '$(_IsiOSLikePlatform)' != 'true'" />