Skip to content

Commit cf32126

Browse files
authored
Normalize shim output directory in publish scenario (#49801)
578eba8 normalized the output path for shims in the pack as tool scenario. However, the publish scenario is unnormalized and the two end up with colliding assets due to path separators. The easiest fix seems to be normalizing all paths.
1 parent 43c449f commit cf32126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ Copyright (c) .NET Foundation. All rights reserved.
12881288
</ItemGroup>
12891289

12901290
<GetEmbeddedApphostPaths
1291-
PackagedShimOutputDirectory="$(PackagedShimOutputRootDirectory)/shims/$(TargetFramework)"
1291+
PackagedShimOutputDirectory="$([System.IO.Path]::Combine($(PackagedShimOutputRootDirectory), 'shims', $(TargetFramework)))"
12921292
ShimRuntimeIdentifiers="@(_PackAsToolShimRuntimeIdentifiers)"
12931293
ToolCommandName="$(ToolCommandName)"
12941294
>

0 commit comments

Comments
 (0)