I am updating the Nuget.targets file this way, and the next build installed my packages in the "libs" directory
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "libs"))</PackagesDir>
but the links are not updated.
Links are fixed by the first installation. Then you need to reinstall your packages (uninstall and then reinstall), it will use the nuget.config file.
Then, NuGet.targets will be used for future builds.
Not very intuitive, but it works for me, hope this helps.
user484189
source share