.net 什么时候会原生支持长路径?
正如许多人发现的那样,.net 不能很好地处理长路径名称。
那么.net什么时候才能原生支持长路径呢?
就本机而言,我的意思是没有任何建议的解决方法,例如 subst 和 pinvoke
一些阅读:
As many would have discovered .net does not handle long paths names well.
So when will .net support long paths natively?
By natively I mean with out any of the suggested workarounds like subst and pinvoke
Some reading:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有趣的是,您错过了链接的线程部分: http://blogs.msdn.com/bclteam/archive/2007/02/13/long-paths-in-net-part-1- of-3-kim-hamilton.aspx
很好地解释了为什么在 Windows 本身能够正确处理其所有 API 中的较长路径之前他们不太可能解决此问题。
考虑到他们提到 Vista 只有一个“解决方案”来改善这个问题,我怀疑 Windows 7 会做得更好。 在这种情况下,这个问题的答案可能是“直到 Windows 8 发布后的某个地方”,这么多年了......
Interestingly, the part of the thread you have missed out on linking: http://blogs.msdn.com/bclteam/archive/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton.aspx
Does a pretty good job of explaining why they are not likely to address this issue until Windows itself can properly handle longer paths in all its APIs.
Considering that they mention Vista only has a 'solution' to ameliorate the problem, I doubt Windows 7 will do much better. In which case the answer to this question is probably something like 'not until somewhere after Windows 8 is released', so years yet...