From bea63e76c91982593267ad14dc45eef935ef5709 Mon Sep 17 00:00:00 2001 From: Tom Deseyn Date: Wed, 15 Feb 2023 23:18:30 +0100 Subject: [PATCH] Microsoft.NETCore.Platforms: fix graph not being updated on pack. --- .../src/Microsoft.NETCore.Platforms.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 46850f95f8bdbe..9011e8a17d50c0 100644 --- a/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj +++ b/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj @@ -17,7 +17,8 @@ true $(MSBuildProjectName) - + UpdateRuntimeJson;$(BeforePack) + <_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' == 'core'">$(NetCoreAppToolCurrent) <_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' != 'core'">net472 <_generateRuntimeGraphTask>$([MSBuild]::NormalizePath('$(BaseOutputPath)', $(Configuration), '$(_generateRuntimeGraphTargetFramework)', '$(AssemblyName).dll'))