Getting TF205022: The following path contains more than the allowed 259 characters in Xcode and TFS

▼魔方 西西 提交于 2019-12-01 18:02:30

问题


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

回答1:


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.

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.

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.

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

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

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.


来源:https://stackoverflow.com/questions/42885821/getting-tf205022-the-following-path-contains-more-than-the-allowed-259-characte

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!