Skip to content

Commit ebccb58

Browse files
committed
Reference the live portable (+ additional) RID graph from sfxproj projects (where we use R2R)
1 parent ba39a92 commit ebccb58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eng/targets/Sfx.Common.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@
3636
<PublishReadyToRunPgoFiles Include="%(MIBCPackage.PackagePath)/**/*.mibc" />
3737
</ItemGroup>
3838
</Target>
39+
40+
<!-- We need to reference the live RID graph to get a graph with any additionally supported RIDs for this build. -->
41+
<ItemGroup>
42+
<PackageDownload Include="Microsoft.NETCore.Platforms" Version="[$(MicrosoftNETCorePlatformsVersion)]" />
43+
</ItemGroup>
44+
45+
<PropertyGroup Condition="Exists('$(NuGetPackageRoot)Microsoft.NETCore.Platforms/$(MicrosoftNETCorePlatformsVersion)')">
46+
<RuntimeIdentifierGraphPath>$(NuGetPackageRoot)Microsoft.NETCore.Platforms/$(MicrosoftNETCorePlatformsVersion)/PortableRuntimeIdentifierGraph.json</RuntimeIdentifierGraphPath>
47+
</PropertyGroup>
3948
</Project>

0 commit comments

Comments
 (0)