Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Inconsistent space handling during packaging and unpackaging of nuget packages. #1837
We have a nuget package where there are lots of spaces in file and folder names. We experience two different levels of inconsistency related to this repository:
Due to the inconsitency (and apparent arbitrariness) it might take some effort to reproduce.
Build project b).
On building project b) the package from a) is fetched and unpacked.
On building project b) the package from a) is fetched and unpacked. During unpacking there will be an exception indicating "Directory not found" or similar.
Use nuget pack instead.
With nuget there is no space conversion at all, spaces go straight through and everything works.
The exception gives a fair hint into failing code, which has enabled med to set breakpoints and watch variables. Is is all in method NugetV2.cleanup where I can follow the inconsistent and somewhat strange input and how Uri.UnescapeDatastring does not produce the expected result. The eventual exception comes from File.Move in the same method, but looking at variables during debugging might provide enough clues even if you are not able to make it actually crash.