From b7a264c8b1cfa84d0a34ad6fad6bf06a3e1531f6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 26 Oct 2022 15:38:23 -0400 Subject: [PATCH] Use generated runtime.json when building shared framework packages (backport of #76068) --- Directory.Build.props | 1 - eng/liveBuilds.targets | 4 +++- .../src/Microsoft.NETCore.Platforms.csproj | 6 +++--- src/libraries/pretest.proj | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index c815af2041b71..790ee76a35137 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -253,7 +253,6 @@ https://dot.net microsoft,dotnetframework true - $([MSBuild]::NormalizePath('$(LibrariesProjectRoot)', 'Microsoft.NETCore.Platforms', 'src', 'runtime.json')) $(MSBuildThisFileDirectory)LICENSE.TXT MIT false diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets index d62f4bcd438d8..0834d63b15942 100644 --- a/eng/liveBuilds.targets +++ b/eng/liveBuilds.targets @@ -193,6 +193,8 @@ - $(RuntimeIdGraphDefinitionFile) + + $([MSBuild]::NormalizePath('$(ArtifactsBinDir)', 'Microsoft.NETCore.Platforms', 'runtime.json')) + $([MSBuild]::NormalizePath('$(LibrariesProjectRoot)', 'Microsoft.NETCore.Platforms', 'src', 'runtime.json')) 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 ac2b2cf5cf45e..870fb1d3363bb 100644 --- a/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj +++ b/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj @@ -41,7 +41,7 @@ - + @@ -50,12 +50,12 @@ - + diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj index fc2fee13d5c33..ee94735234672 100644 --- a/src/libraries/pretest.proj +++ b/src/libraries/pretest.proj @@ -92,7 +92,7 @@ Condition="'$(BuildTargetFramework)' == '$(NetCoreAppCurrent)' or '$(BuildTargetFramework)' == ''">