Skip to content

Commit

Permalink
fix: Trim directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Jan 27, 2025
1 parent cbff34e commit d652099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void InitializeInner(ConfigureServer configureServer)

if (properties.Remove("RuntimeIdentifier", out var runtimeIdentifier))
{
if (appendIdToPath && hasOutputPath && outputPath!.EndsWith(runtimeIdentifier, StringComparison.OrdinalIgnoreCase))
if (appendIdToPath && hasOutputPath && Path.TrimEndingDirectorySeparator(outputPath ?? "").EndsWith(runtimeIdentifier, StringComparison.OrdinalIgnoreCase))
{
// Set the RuntimeIdentifier as a temporary property so that we do not force the
// property as a read-only global property that would be transitively applied to
Expand Down

0 comments on commit d652099

Please sign in to comment.