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

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

问题描述

我正在编写构建过程模板的自定义活动.我在构建活动时遇到了以下问题.

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.

目前有两种解决方法:

减少工作流 x:Class 属性中的命名空间.这使得生成的文件名称较短.

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

使用 subst 或 mklink 命令来创建映射,以便解决方案所在的路径成为小很多.团队构建中,需要修改工作区映射一样.

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天全站免登陆