获取 TF205022:以下路径包含超过 Xcode 和 TFS 中允许的 259 个字符 [英] Getting TF205022: The following path contains more than the allowed 259 characters in Xcode and TFS

查看:29
本文介绍了获取 TF205022:以下路径包含超过 Xcode 和 TFS 中允许的 259 个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如 https://www.visualstudio.com/en-us/docs/tfvc/share-your-code-in-tfvc-xcode 我正在使用 git-tf 将我现有的代码放入 TFVC.但我的路很深.在办理登机手续时,我得到了,

As suggested by https://www.visualstudio.com/en-us/docs/tfvc/share-your-code-in-tfvc-xcode I am putting my existing code to TFVC using git-tf. But my paths are deep. During check-in I am getting,

git-tf: TF205022: The following path contains more than the allowed 259 characters: 
/Users/VeryLongPath

推荐答案

尽管路径长度限制真的很烦人,但最有效和最简单的方法仍然是花一些时间调整您的文件/文件夹结构 完成这项工作.

Even though the path length limitation is really annoying, the most effective and easy way still is spending some time tweaking your file/folder structure to make this work.

例如: 而不是 \xx\Build\Drop\ProjectName,只需使用 \xx\Build\Drop(或 \xx\Builds),因为项目名称也在构建名称中.

For example: instead of \xx\Build\Drop\ProjectName, just use \xx\Build\Drop (or \xx\Builds) since the project name is also in the build name.

对于TFS中的长路径问题,之前有一个相关的uservoice,现在已经完成了.但是,在某些方面仍然存在问题.

For the long path issue in TFS, there had been a related uservoice and now completed. However, it's still a problem in some areas.

修复 260 个字符的文件名长度限制

我们已经从 BCL 中删除了基本文件的限制操作功能(CRUD).您可以在此处找到更多详细信息:

We’ve removed the limitation from the BCL for the basic file manipulation functionality (CRUD). You can find more details here:

https:///blogs.msdn.microsoft.com/dotnet/2016/08/02/annoucing-net-framework-4-6-2/

Immo Landwerth 项目经理 .NET

还建议您看看这个很棒的博客-TFS 路径太长问题 了解如何处理该问题.

Also suggest you to take a look at this great blog-TFS Path Too Long problems for how to deal with the issue.

简而言之,目前它的 TFVC 限制来自 https://www.visualstudio.com/en-us/docs/reference/naming-restrictions#version-control-paths

In short currently its the TFVC limitation, from https://www.visualstudio.com/en-us/docs/reference/naming-restrictions#version-control-paths

Must not contain more than 259 Unicode characters for a single folder or file name.

这篇关于获取 TF205022:以下路径包含超过 Xcode 和 TFS 中允许的 259 个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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