You receive an error message when you try to use the Visual Studio 2005 Team Foundation Server tf command-line utility to access source code (921317)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Team System Team Foundation:

SYMPTOMS

You receive an error message when you try to use the Microsoft Visual Studio 2005 Team Foundation Server tf command-line utility to access source code.

For example, you receive an error message if you use the following command to try to access the Myform.cs user-created class:

tf get /s:StringLongerThan259Characters myform.cs /version:c1256

The error message text resembles the following:
---------------------------
Microsoft Visual Studio
---------------------------
Error

TF10128: The path <path> contains more than the allowed 260 characters. Type or select a shorter path.
---------------------------
OK   
---------------------------

WORKAROUND

To work around this problem, create directory paths that contain two characters fewer than the limit that is stated in the error message. You can also use the History window and Source Code Explorer to find the information that you are looking for.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Despite the text in the error message, the path limit is not actually 260 characters when you search source code. The following limits exist:
  • Server paths are limited to 258 characters.
  • Local paths are limited to 259 characters.
For more information about the tf command-line utility, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:8/9/2006
Keywords:kbBug kberrmsg kbtshoot kbprb KB921317 kbAudDeveloper kbAudITPRO