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
This commit is contained in:
@@ -20,6 +20,6 @@
|
||||
|
||||
<!-- Workaround for https://github.com/dotnet/sdk/issues/11105 -->
|
||||
<ItemGroup>
|
||||
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
|
||||
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageRoot)))" Condition="'$(NuGetPackageRoot)' != ''" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user