News for hackers. Stuff that matters.
Re:.NET Framework 4.6.2 by backslash_16 on Tuesday August 02, 2016 @06:00PM (#12213751)
In the release notes it says the MAXPATH file name limitation is fixed.

Does that mean what I think, and we're now free to have things deeply nested with arbitrarily long names? ~32768 characters according to the docs. I frequently hit this problem, especially with a git repository inside of a solution with a huge name.

This is great and I wonder if this will incentivize vendors to finally recompile some of their old applications or if the *.config file change will be good enough.

Re:.NET Framework 4.6.2 by julianz on Tuesday August 02, 2016 @09:52PM (#12215000)
Interview with the person removing filename limitations here, it's an interesting discussion about a horrible, hard problem.

https://www.dotnetrocks.com/?show=1320

Re:.NET Framework 4.6.2 by dogma1138 on Tuesday August 02, 2016 @06:16PM (#12213859)
Yes it was originally the same as the UNC path limit which was 260 chars. Microsoft (a while ago) has updated WinAPI to support unicode and under extended-length paths has lifted the limit up to 32,767 chars it seems that now .NET matched this also. https://msdn.microsoft.com/en-us/library/aa365247(VS.85).asp...
Re:.NET Framework 4.6.2 by poizan42 on Wednesday August 03, 2016 @03:40AM (#12216316)
"A while ago"? That was at least back in NT 3.5
Re:.NET Framework 4.6.2 by dogma1138 on Wednesday August 03, 2016 @06:14AM (#12216903)
IIRC the MAX_PATH limit was lifted from Win32 with one of the Windows 10 builds. But it's true that unicode support was there for a "while" ;) the limit however was still enforced, so I should've been more clear that only the restriction lifting was more recent than 2 decades past.
Re:.NET Framework 4.6.2 by tracker1 on Wednesday August 03, 2016 @03:16AM (#12216217)
One niggle, you still may have issues with Windows explorer, so if it's a path you need to navigate to, be careful... That said, I still don't get why .Net 1.0 didn't do this, I also don't get why they haven't fixed Windows explorer's long file/directory name support.
Re:.NET Framework 4.6.2 by tracker1 on Wednesday August 03, 2016 @08:26PM (#12222538)
Looks like the Windows 10 update recently corrected a lot of the Path issues, so will have to see if this works now...
Re:.NET Framework 4.6.2 by Amiga64 on Wednesday August 03, 2016 @06:09AM (#12216874)
I don't see why people obsess about the MAXPATH as it's quite possible to get 32,768 characters, just use UNC paths with .NET which has been supported since I don't know when; you just need some DLL imports. https://ingehenriksen.wordpress.com/2015/05/23/how-to-work-w...
Re:.NET Framework 4.6.2 by WorldMaker on Wednesday August 03, 2016 @10:06AM (#12217952)
This does the DLL imports for you now and supports it across the board for everything that for everything that uses System.IO, which means once your app opts in you can use just about anything in the .NET ecosystem you want and trust it will work (say, a .NET 2 logging library that your company mandates). (It still needs UNC-like paths in some cases, but that's Windows back compat for you.)
Re:.NET Framework 4.6.2 by MichaelGG on Tuesday August 02, 2016 @06:13PM (#12213837)
This is just for the .NET wrappers. Other code might still have issues. Doesn't seem like recompiling is needed; as you mention there's a config switch.

(You wouldn't have to recompile anyways; the targeting is just some metadata, so you could just change the already-compiled code unless they do their own binary verification.)