Skip to content

Commit

Permalink
Remove U2D marker dependency on ProjectGuid property (#9504)
Browse files Browse the repository at this point in the history
* Version 17.10 (#9499)

* Remove U2D marker dependency on ProjectGuid property

* Revert "Version 17.10"

---------

Co-authored-by: AR-May <67507805+AR-May@users.noreply.github.com>
  • Loading branch information
JanKrivanek and AR-May authored Dec 13, 2023
1 parent 7e78f87 commit 74e3f9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Tasks/Microsoft.Common.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.

<PropertyGroup Condition="'$(MSBuildCopyMarkerName)' == ''">
<MSBuildCopyMarkerName>$(MSBuildProjectFile)</MSBuildCopyMarkerName>
<!-- For a long MSBuildProjectFile let's shorten this to 17 chars - using the first 8 chars of the filename and either the ProjectGuid if it exists -->
<MSBuildCopyMarkerName Condition="'$(MSBuildCopyMarkerName.Length)' &gt; '17' and '$(ProjectGuid)' != ''">$(MSBuildProjectFile.Substring(0,8)).$(ProjectGuid.Substring(1,8))</MSBuildCopyMarkerName>
<!-- or a filename hash if the guid is not present (in such case the filename was not shortened and is still over 17 chars long). -->
<!-- For a long MSBuildProjectFile let's shorten this to 17 chars - using the first 8 chars of the filename and a filename hash. -->
<MSBuildCopyMarkerName Condition="'$(MSBuildCopyMarkerName.Length)' &gt; '17'">$(MSBuildProjectFile.Substring(0,8)).$([MSBuild]::StableStringHash($(MSBuildProjectFile)).ToString("X8"))</MSBuildCopyMarkerName>
<MSBuildCopyMarkerName>$(MSBuildCopyMarkerName).Up2Date</MSBuildCopyMarkerName>
</PropertyGroup>
Expand Down

0 comments on commit 74e3f9f

Please sign in to comment.