Browse Source

Fixed build error: SourceRoot paths are required to end with a slash or backslash (#16174)

If developers changed the nuget global packages folder by set NUGET_PACKAGES environment variable to a path without trailing slash, they may have a build error like this, refer to https://github.com/PrismLibrary/Prism/issues/2369
pull/16265/head
Heku 2 years ago
committed by GitHub
parent
commit
0a938bbb15
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      build/SourceLink.props

2
build/SourceLink.props

@ -20,6 +20,6 @@
<!-- Workaround for https://github.com/dotnet/sdk/issues/11105 --> <!-- Workaround for https://github.com/dotnet/sdk/issues/11105 -->
<ItemGroup> <ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" /> <SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageRoot)))" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…
Cancel
Save