From ca12af9ef04943270c67e1a13ddb7583ec8895c1 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 26 May 2021 17:20:15 +0200 Subject: [PATCH 1/2] Expose the UseLocalTargetingRuntimePack property and use it in the Microsoft.NETCore.Platforms package to avoid a dependency on the live built targeting and runtime pack / shared framework. --- eng/targetingpacks.targets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/targetingpacks.targets b/eng/targetingpacks.targets index 793f1954524fd3..da9407c5090d0c 100644 --- a/eng/targetingpacks.targets +++ b/eng/targetingpacks.targets @@ -6,13 +6,13 @@ - <_UseLocalTargetingRuntimePack>true + true false false - + - + <_NetCoreAppTargetFrameworkIdentifier Condition="$([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '5.0'))">netcoreapp <_NetCoreAppTargetFrameworkIdentifier Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '5.0'))">net %(ResolvedFrameworkReference.TargetingPackPath)\ref\$(_NetCoreAppTargetFrameworkIdentifier)$(TargetFrameworkVersion.TrimStart('v'))\ @@ -93,7 +93,7 @@ Date: Wed, 26 May 2021 17:21:45 +0200 Subject: [PATCH 2/2] Update Microsoft.NETCore.Platforms.csproj --- .../src/Microsoft.NETCore.Platforms.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj b/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj index 3259946e31eb80..299a8b2ceb7342 100644 --- a/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj +++ b/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj @@ -1,6 +1,8 @@ $(NetCoreAppToolCurrent);net472 + + false $(MSBuildProjectName) true Microsoft.NETCore.Platforms.BuildTasks