Skip to content

Commit 3780bda

Browse files
authored
Add AdditionalRuntimeIdentifier if building from source (#34650)
1 parent cc7f222 commit 3780bda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Layout/redist/targets/GenerateLayout.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
<Target Name="PublishPortableRuntimeIdentifierGraph"
44
BeforeTargets="Build">
5-
5+
6+
<ItemGroup Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(TargetRid)' != '' AND '$(PortableRid)' != '' AND '$(TargetRid)' != '$(PortableRid)'">
7+
<AdditionalRuntimeIdentifier Include="$(TargetRid)" Imports="$(PortableRid)" />
8+
</ItemGroup>
9+
610
<UpdatePortableRuntimeIdentifierGraph
711
InputFile="PortableRuntimeIdentifierGraph.json"
812
OutputFile="$(OutputPath)/PortableRuntimeIdentifierGraph.json"

0 commit comments

Comments
 (0)