Skip to content

Commit

Permalink
Ensure slash in PublishDir (#11248)
Browse files Browse the repository at this point in the history
* Ensure slash in PublishDir

* Update src/Tasks/Microsoft.Common.CurrentVersion.targets

Co-authored-by: Rainer Sigwald <[email protected]>

---------

Co-authored-by: Rainer Sigwald <[email protected]>
  • Loading branch information
JanKrivanek and rainersigwald authored Jan 14, 2025
1 parent 1289be9 commit 71e99de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/Microsoft.Common.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<!-- Output location for publish target. -->
<PropertyGroup>
<PublishDir Condition="'$(PublishDir)' != '' and !HasTrailingSlash('$(PublishDir)')">$(PublishDir)\</PublishDir>
<PublishDir Condition="'$(PublishDir)'==''">$(OutputPath)app.publish\</PublishDir>
<PublishDir Condition="'$(PublishDir)'==''">$([MSBuild]::EnsureTrailingSlash($([MSBuild]::NormalizePath('$(OutputPath)', 'app.publish'))))</PublishDir>
</PropertyGroup>

<!--
Expand Down

0 comments on commit 71e99de

Please sign in to comment.