Skip to content

Commit

Permalink
Clean TargetPath and PackagePath on None if empty on PublishProjectRe…
Browse files Browse the repository at this point in the history
…ference.
  • Loading branch information
wasabii committed Aug 31, 2023
1 parent 4cbd0b0 commit 5af7869
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IKVM.Core.MSBuild/targets/PublishProjectReference.targets
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<Target Name="GetPublishProjectReferenceOutputItems" DependsOnTargets="GetPublishProjectReferenceItems" BeforeTargets="_GetPackageFiles" Condition=" '$(DesignTimeBuild)' != 'true' And '@(_PublishProjectReferenceItems)' != '' ">
<ItemGroup>
<None Include="@(_PublishProjectReferenceItems)">
<TargetPath Condition=" '%(_PublishProjectReferenceItems.PublishTargetPath)' == '' "></TargetPath>
<TargetPath Condition=" '%(_PublishProjectReferenceItems.PublishTargetPath)' != '' ">$([MSBuild]::MakeRelative('.', '%(_PublishProjectReferenceItems.PublishTargetPath)%(_PublishProjectReferenceItems.TargetPath)'))</TargetPath>
<PackagePath Condition=" '%(_PublishProjectReferenceItems.PublishPackagePath)' == '' "></PackagePath>
<PackagePath Condition=" '%(_PublishProjectReferenceItems.PublishPackagePath)' != '' ">$([MSBuild]::MakeRelative('.', '%(_PublishProjectReferenceItems.PublishPackagePath)%(_PublishProjectReferenceItems.TargetPath)'))</PackagePath>
</None>
</ItemGroup>
Expand Down

0 comments on commit 5af7869

Please sign in to comment.