nuget restore exceeding MAXPATH
nerumo opened this issue · 1 comments
nerumo commented
I use Jenkins as build server and I want to use the multi branch pipeline. This enforces Jenkins to create a unique folder name that has a random component. The finally generated path gets quite long. If I then start a package restore, the restore fails because of the MAXPATH limitation.
Since .Net 4.6.2 it's possible to use long paths, but nuget is actively preventing it. Two things that should be changed:
- add the runtime configuration for long path to the .config file (https://blogs.msdn.microsoft.com/jeremykuhne/2016/07/30/net-4-6-2-and-long-paths-on-windows-10/)
- remove the MAXPATH check from the nuget client code