diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.Common.targets b/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.Common.targets index c1c71c24f186..74e6367225fb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.Common.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.Common.targets @@ -55,13 +55,17 @@ Copyright (c) .NET Foundation. All rights reserved. with the referencing project's target framework. ============================================================ --> - + <_SkipNearestTargetFrameworkResolution Condition="'$(TargetFramework)' != '' and '$(ReferringTargetFramework)' == ''">true $(TargetFramework) - + + + <_HasSingleTargetFramework Condition="'$(IsCrossTargetingBuild)' != 'true'">true + <_HasSingleTargetFramework Condition="'$(_HasSingleTargetFramework)' == ''">false + <_PossibleTargetFrameworks Condition="'$(TargetFramework)' != ''">$(TargetFramework) <_PossibleTargetFrameworks Condition="'$(TargetFramework)' == ''">$(TargetFrameworks)