Skip to content

Commit 4f19d17

Browse files
authored
Microsoft.NETCore.Platforms: fix graph not being updated on pack. (#82204)
1 parent 6aa31aa commit 4f19d17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<AvoidRestoreCycleOnSelfReference>true</AvoidRestoreCycleOnSelfReference>
1818
<!-- TODO: Remove with AvoidRestoreCycleOnSelfReference hack. -->
1919
<PackageValidationBaselineName>$(MSBuildProjectName)</PackageValidationBaselineName>
20-
20+
<BeforePack Condition="'$(AdditionalRuntimeIdentifiers)' == ''">UpdateRuntimeJson;$(BeforePack)</BeforePack>
21+
2122
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' == 'core'">$(NetCoreAppToolCurrent)</_generateRuntimeGraphTargetFramework>
2223
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_generateRuntimeGraphTargetFramework>
2324
<_generateRuntimeGraphTask>$([MSBuild]::NormalizePath('$(BaseOutputPath)', $(Configuration), '$(_generateRuntimeGraphTargetFramework)', '$(AssemblyName).dll'))</_generateRuntimeGraphTask>

0 commit comments

Comments
 (0)