From 1883505e617bfd0a6dc8a38e60ca3d02da5e2f26 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 26 May 2021 19:57:04 +0200 Subject: [PATCH] Expose the UseLocalTargetingRuntimePack property (#53290) * 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. * Update Microsoft.NETCore.Platforms.csproj --- eng/targetingpacks.targets | 12 ++++++------ .../src/Microsoft.NETCore.Platforms.csproj | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/eng/targetingpacks.targets b/eng/targetingpacks.targets index 793f195..da9407c 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 @@ $(NetCoreAppToolCurrent);net472 + + false $(MSBuildProjectName) true Microsoft.NETCore.Platforms.BuildTasks -- 2.7.4