Visual Studio 2008引用时间过长? [英] Visual Studio 2008 References too long?

查看:100
本文介绍了Visual Studio 2008引用时间过长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近重新组织了源代码管理,发现不再构建其中一种解决方案.我们得到的唯一错误是:

I have recently re-organised our source control and found one of our solutions no longer builds. The only error that we get is:

错误65未知的生成错误, 指定的路径,文件名或两者都是 太长.完全合格的文件 名称必须少于260个字符, 并且目录名称必须小于 超过248个字符.'

Error 65 Unknown build error, 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'

我在Visual Studio中浏览了每个参考,每个参考的最长完整路径(路径和文件名)是161个字符.

I went through each reference in visual studio and the longest complete path (path AND filename) of each reference was 161 characters.

我的解决方案文件夹结构如下:

My solution folder structure is thus:

C:\ projects_svn \ ABC \ branches \ 01.02.03 \ ABC \ ABC SUITE \ ABC.DEF.GHIJKLM.NOP \

C:\projects_svn\ABC\branches\01.02.03\ABC\ABC SUITE\ABC.DEF.GHIJKLM.NOP\

任何帮助将不胜感激,考虑到项目的规模,我认为此文件夹结构不会太长,而且组织起来会更好.

Any help would be greatly appreciated, I do not feel this folder structure is too long, given the project size, and organises things much better.

以下一些技术细节可能会有所帮助(如果您需要更多,请告诉我): 在Windows XP或Windows 7上运行的Visual Studio 2008 SP2.使用Subversion作为SCM.用C#/WPF编码.

Here are some technical details which may help (if you need more let me know): Visual Studio 2008 SP 2 running on Windows XP or Windows 7. Using Subversion as SCM. Coding in C#/WPF.

谢谢

推荐答案

我认为这里可能发生的情况是,您的一个项目正在使用相对提示路径,该路径在树的后部和目录中的位置都非常远结构体.例如

I think what's likely happening here is that one of your projects is using a relative hint path that is going very far back up the tree and then back down the directory structure. For example

c:\foo\bar\baz\..\..\..\some\other\dir\foo.dll

即使实际文件的路径小于256,相对的树胶也会使它更长.

Even though the path to the actual file is less than 256 the relative goop makes it much longer.

找到这些文件的最佳方法是在所有.csproj/.vbproj文件中搜索字符串..\..\.看看是否有任何结果.

The best way to find these is to search all of your .csproj / .vbproj files for the string ..\..\. See if that turns up any results.

这篇关于Visual Studio 2008引用时间过长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆