获取 TF205022:以下路径包含超过 Xcode 和 TFS 中允许的 259 个字符
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42885821/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Getting TF205022: The following path contains more than the allowed 259 characters in Xcode and TFS
提问by user960567
As suggested by https://www.visualstudio.com/en-us/docs/tfvc/share-your-code-in-tfvc-xcodeI am putting my existing code to TFVC using git-tf. But my paths are deep. During check-in I am getting,
正如https://www.visualstudio.com/en-us/docs/tfvc/share-your-code-in-tfvc-xcode所建议的,我正在使用 git-tf 将我现有的代码放入 TFVC。但我的路很深。在办理登机手续时,我得到,
git-tf: TF205022: The following path contains more than the allowed 259 characters:
/Users/VeryLongPath
回答by PatrickLu-MSFT
Even though the path length limitation is really annoying, the most effective and easy way still is spending some time tweaking your file/folder structureto make this work.
尽管路径长度限制真的很烦人,但最有效和最简单的方法仍然是花一些时间调整您的文件/文件夹结构以使其工作。
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.
例如:代替\xx\Build\Drop\ProjectName
,只需使用\xx\Build\Drop
(或\xx\Builds
),因为项目名称也在构建名称中。
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.
对于TFS中的长路径问题,之前有一个相关的uservoice,现在已经完成了。但是,在某些方面仍然存在问题。
Fix 260 character file name length limitation
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/announcing-net-framework-4-6-2/
Immo Landwerth Program Manager .NET
我们已从 BCL 中删除了对基本文件操作功能 (CRUD) 的限制。您可以在此处找到更多详细信息:
https://blogs.msdn.microsoft.com/dotnet/2016/08/02/annoucing-net-framework-4-6-2/
Immo Landwerth 项目经理 .NET
Also suggest you to take a look at this great blog-TFS Path Too Long problemsfor how to deal with the issue.
还建议您查看这个很棒的博客 - TFS 路径太长问题,了解如何处理该问题。
In short currently its the TFVC limitation, from https://www.visualstudio.com/en-us/docs/reference/naming-restrictions#version-control-paths
总之,目前它的 TFVC 限制,来自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.