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:
Heku
2024-07-09 07:45:02 +08:00
committed by GitHub
parent ad0bc0dabf
commit 0a938bbb15
+1 -1
View File
@@ -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>