Skip to content

Commit 5cec43d

Browse files
authored
Append missing trailing path to directory for icon/readme
This MSBuild property inconsistent with MSBuildThisFileDirectory, whereas MSBuildProjectDirectory does
1 parent cba10bb commit 5cec43d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
<!-- src-level will need explicit inclusion -->
4141
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png" Visible="false"
4242
Pack="true" PackagePath="%(Filename)%(Extension)"
43-
Condition="Exists('$(MSBuildThisFileDirectory)icon.png') and !Exists('$(MSBuildProjectDirectory)icon.png')" />
43+
Condition="Exists('$(MSBuildThisFileDirectory)icon.png') and !Exists('$(MSBuildProjectDirectory)\icon.png')" />
4444

4545
<None Include="$(MSBuildThisFileDirectory)readme.md" Link="readme.md"
4646
Pack="true" PackagePath="%(Filename)%(Extension)"
47-
Condition="Exists('$(MSBuildThisFileDirectory)readme.md') and !Exists('$(MSBuildProjectDirectory)readme.md')" />
47+
Condition="Exists('$(MSBuildThisFileDirectory)readme.md') and !Exists('$(MSBuildProjectDirectory)\readme.md')" />
4848
</ItemGroup>
4949

5050
<!-- Microsoft.NET.Sdk\targets\Microsoft.NET.DefaultAssemblyInfo.targets does this and is imported

0 commit comments

Comments
 (0)