From c5f5cef6fb4999ee054f13318994d984bde4e900 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Tue, 17 May 2022 12:28:28 -0700 Subject: [PATCH] Ensure the shared framework build uses the generated runtime.json --- Directory.Build.props | 1 + eng/liveBuilds.targets | 2 +- .../src/Microsoft.NETCore.Platforms.csproj | 13 ++++++++----- src/libraries/pretest.proj | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index acee2f3fe1828c..6bdf15ee9df5de 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -267,6 +267,7 @@ microsoft,dotnetframework true $([MSBuild]::NormalizePath('$(LibrariesProjectRoot)', 'Microsoft.NETCore.Platforms', 'src', 'runtime.json')) + $([MSBuild]::NormalizePath('$(ArtifactsBinDir)', 'Microsoft.NETCore.Platforms', '$(Configuration)', 'runtime.json')) $(MSBuildThisFileDirectory)LICENSE.TXT MIT false diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets index 77e9a90b97d30c..f6a28ce253166e 100644 --- a/eng/liveBuilds.targets +++ b/eng/liveBuilds.targets @@ -221,6 +221,6 @@ ResolveLibrariesRuntimeFilesFromLocalBuild" /> - $(RuntimeIdGraphDefinitionFile) + $(LiveRuntimeIdGraphDefinitionFile) 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 482e0b70e47e70..d593393ae4ff5a 100644 --- a/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj +++ b/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj @@ -43,8 +43,7 @@ - - + @@ -58,13 +57,17 @@ - + - + diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj index ac410f828662b1..16fb4ee776ea82 100644 --- a/src/libraries/pretest.proj +++ b/src/libraries/pretest.proj @@ -93,7 +93,7 @@ Condition="'$(BuildTargetFramework)' == '$(NetCoreAppCurrent)' or '$(BuildTargetFramework)' == ''">