TFS生成错误-“指定的路径,文件名或两者都太长...” [英] TFS Build error - "The specified path, file name, or both are too long..."

查看:266
本文介绍了TFS生成错误-“指定的路径,文件名或两者都太长...”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写构建流程模板的自定义活动。生成活动时出现以下问题。 '引发了'System.IO.PathTooLongException'类型的异常:'指定的路径,文件名或两者均太长。完全限定的文件名必须少于260个字符,目录名称必须少于248个字符。’。

您有什么想法吗?请帮忙!

解决方案

我找到了一条提示此处。希望对您有所帮助。


当前有两种解决方法:



减少工作流x:Class属性中的名称空间。这样会使
生成的文件名更短。



使用subst或mklink命令对
创建映射,以使解决方案所在的路径变小
。在团队建设中,工作区映射需要同样地修改



I'm writing the Custom Activities of build process template. I got the below issue when build the activity.

>XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' :  '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.'.

Do you have any ideas? Please help!

解决方案

I find one tip here. Hope it might be helpful to you.

Currently there are a two workarounds:

Reduce the namespace in workflow x:Class property. This makes the generated file have a shorter name.

Use the subst or mklink command to create mapping so that the path the solution is located in becomes a lot smaller. In team build, the workspace mapping needs to be modified equally.

这篇关于TFS生成错误-“指定的路径,文件名或两者都太长...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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