Skip to content

Commit ae4b892

Browse files
authored
Revert + adjust "Ensure slash in PublishDir" (dotnet#11401)
### Context dotnet#11248 broke ClickOnce publishing - https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2359773 The breakage is caused by the 'NormalizePath' part - as it can change relative path to absolute. ### Changes made - reverted - added the original change, which just ensures the slash
2 parents 7b604c2 + 343ff19 commit ae4b892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tasks/Microsoft.Common.CurrentVersion.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
497497
<!-- Output location for publish target. -->
498498
<PropertyGroup>
499499
<PublishDir Condition="'$(PublishDir)' != '' and !HasTrailingSlash('$(PublishDir)')">$(PublishDir)\</PublishDir>
500-
<PublishDir Condition="'$(PublishDir)'==''">$([MSBuild]::EnsureTrailingSlash($([MSBuild]::NormalizePath('$(OutputPath)', 'app.publish'))))</PublishDir>
500+
<PublishDir Condition="'$(PublishDir)'==''">$([MSBuild]::EnsureTrailingSlash('$(OutputPath)'))app.publish\</PublishDir>
501501
</PropertyGroup>
502502

503503
<!--

0 commit comments

Comments
 (0)