Skip to content

Commit

Permalink
Add Link metadata to Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
AR-May committed Nov 28, 2023
1 parent f4b2350 commit bf96089
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Tasks/Microsoft.Common.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,18 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<_Temp Remove="@(_Temp)" />
</ItemGroup>

<!-- RESOURCE ITEMS -->
<AssignLinkMetadata Items="@(Resource)"
Condition="'@(Resource)' != '' and '%(Resource.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)' and $([MSBuild]::AreFeaturesEnabled('17.10'))">
<Output TaskParameter="OutputItems" ItemName="_Temp" />
</AssignLinkMetadata>

<ItemGroup Condition="$([MSBuild]::AreFeaturesEnabled('17.10'))">
<Resource Remove="@(_Temp)" />
<Resource Include="@(_Temp)" />
<_Temp Remove="@(_Temp)" />
</ItemGroup>

</Target>

<!--
Expand Down

0 comments on commit bf96089

Please sign in to comment.