From 915089deabed2f34b02c51ff3966ac27eadfba3f Mon Sep 17 00:00:00 2001 From: Noah Gilson Date: Wed, 26 Apr 2023 09:26:29 -0700 Subject: [PATCH] use the msbuild version comparison function instead of lt and rt in runtimeidentifierinference --- .../Microsoft.NET.RuntimeIdentifierInference.targets | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets index 2cfddd7ad8cf..4290659e0c9c 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets @@ -64,8 +64,7 @@ Copyright (c) .NET Foundation. All rights reserved. true + $([MSBuild]::VersionLessThan($(_TargetFrameworkVersionWithoutV), '8.0'))">true false <_RuntimeIdentifierUsesAppHost Condition="$(RuntimeIdentifier.StartsWith('ios')) or $(RuntimeIdentifier.StartsWith('tvos')) or $(RuntimeIdentifier.StartsWith('maccatalyst')) or $(RuntimeIdentifier.StartsWith('android')) or $(RuntimeIdentifier.StartsWith('browser'))">false <_RuntimeIdentifierUsesAppHost Condition="'$(_RuntimeIdentifierUsesAppHost)' == ''">true @@ -245,7 +244,7 @@ Copyright (c) .NET Foundation. All rights reserved. -