[Bug]: SourceRoot items added in .nuget.g.props files do not take NuGetPackageFolders property in consideration (original) (raw)

NuGet Product Used

dotnet.exe

Product Version

6.0.100

Worked before?

Yes

Impact

It's more difficult to complete my work

Repro Steps & Context

Below is the relevant part of the generated props file. Setting NuGetPackageFolders will not have any effect on the generated SourceRoot items. Shouldn't these be consistent?

C:\Test\.packages;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder

Verbose Logs

No response