Open dezsiszabi opened 7 years ago
@jaredpar Any opinion if @dezsiszabi's proposed fix is safe?
Should be fine
@dezsiszabi Is this a fix you'd want to try?
@jasonmalinowski Yes, it's a very minor change. I already tested in on my computer and it works for me. Can I submit the PR?
@dezsiszabi Of course! Go right ahead. :-)
Version Used: Latest version from master.
Steps to Reproduce:
Expected Behavior: Should download vswhere and move on with the NuGet restore process.
Actual Behavior: You get the below output:
Reason As far as I know NuGet doesn't support a trailing '\' in its
OutputDirectory
parameter*. TheGet-PackagesDir
function is used to calculate what's passed to NuGet as an argument.Solution I have a solution which I can submit as a PR once you confirm this issue. Adding
.TrimEnd("\")
inEnsure-BasicTool
to what's passed to NuGet solves this. The reason I don't propose changing this inGet-PackagesDir
is because that's called from multiple places and could break other things if something else expects the trailing '\' to be there.*Source: https://github.com/NuGet/home/issues/1817 https://github.com/NuGet/NuGet.Client/commit/f47b115f2577fa0304d5b595ac86ef2d4cfab605