VS2008 WPF Xaml:加载程序集时是否有路径长度限制?
VS2008在加载XAML程序集时似乎有路径长度限制。
使用 Microsoft 示例 Southridge,如果项目存储在“C:\Projects\C#示例\Southridge_Labs\1.Southridge_Fundamentals\Start”上,则设计器不会加载程序集。
但是,如果我将项目文件复制到根目录 (C:\Southridge_Labs\1.Southridge_Fundamentals\Start),那么它就可以正常工作。
基本上我已经解决了我的问题,但我想知道是否有明确的限制,但我找不到任何相关信息。
感谢您的帮助。
It seems that there is a path lenght limit for VS2008 when loading XAML assemblies.
Using the Microsoft sample Southridge, if the project is stored on "C:\Projects\C# samples\Southridge_Labs\1.Southridge_Fundamentals\Start" the designer does not load the assemblies.
But if I copy my files the project to the root (C:\Southridge_Labs\1.Southridge_Fundamentals\Start) then it works fine.
Basically I have solved my problem, but I want to know if there is an EXPLICIT limit and I cannot find any information related.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道 WPF 是否有不同,但 Windows MAX_PATH 值设置为 260 个字符,但有一些例外。但你的路径似乎并没有超出这个限制。请记住,程序集的路径
包括以下内容: .\bin\debug\ assembly_name_here.dll
除了项目位置路径之外还
I don't know if there is something different for WPF, but the windows MAX_PATH value is set to 260 characters with some exceptions. But your path does not seem to exceed this limit. Remember though that the path to the assembly includes something like:
.\bin\debug\assembly_name_here.dll
additionly over your project location path.