Skip to content

Commit 1ae988c

Browse files
Fix SourceRoot when NUGET_PACKAGES is set
1 parent 1a31545 commit 1ae988c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<SourceRoot Include="$(NuGetPackageRoot)" />
28+
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageRoot)))" />
2929
</ItemGroup>
3030

3131
<Target Name="CoverletGetPathMap"
@@ -36,4 +36,4 @@
3636
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
3737
</ItemGroup>
3838
</Target>
39-
</Project>
39+
</Project>

0 commit comments

Comments
 (0)