Skip to content

Commit 09e7d95

Browse files
committed
add RID to RID-specific tool package paths for future-proofing
1 parent 0a37671 commit 09e7d95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.PackTool.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ Copyright (c) .NET Foundation. All rights reserved.
103103
<Output TaskParameter="ResolvedFileToPublishWithPackagePath" ItemName="_ResolvedFileToPublishWithPackagePath" />
104104
</ResolveToolPackagePaths>
105105

106+
<PropertyGroup>
107+
<_ToolRidPath Condition="'$(RuntimeIdentifier)' == ''">any</_ToolRidPath>
108+
<_ToolRidPath Condition="'$(RuntimeIdentifier)' != ''">$(RuntimeIdentifier)</_ToolRidPath>
109+
</PropertyGroup>
106110
<ItemGroup>
107111
<TfmSpecificPackageFile Include="@(_GeneratedFiles)">
108-
<PackagePath>tools/$(_ToolPackShortTargetFrameworkName)/any/%(_GeneratedFiles.RecursiveDir)%(_GeneratedFiles.Filename)%(_GeneratedFiles.Extension)</PackagePath>
112+
<PackagePath>tools/$(_ToolPackShortTargetFrameworkName)/$(_ToolRidPath)/%(_GeneratedFiles.RecursiveDir)%(_GeneratedFiles.Filename)%(_GeneratedFiles.Extension)</PackagePath>
109113
</TfmSpecificPackageFile>
110114

111115
<TfmSpecificPackageFile Include="@(_ResolvedFileToPublishWithPackagePath)">

0 commit comments

Comments
 (0)