Hugo Häggmark

Sagas from the software trenches in the continuing battle between quality, price and time…

30 March 2011

Yet another post about Team Build and the 260+ char limit

by Hugo Häggmark

So this is definitely not a new topic and there has been lots of post about it. But I’d like to make sure that you don’t find yourself in the situation where you receive the following error message:

“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.”

As many already have stated this is not a limit in Team Build but a Windows limit, you can read more about that in Naming Files, Paths, and Namespaces.

Even though many devs out there are brutally aware of this hard limit I tend to see the same mistakes appear at customers over and over again.

Lets start out with some basics:

And here are some advanced strategies:

This should prevent you from hitting the 260+ hard limit for a while but It’s no silver bullet unfortunately so I hope that a more complete solution will rise soon.

Enjoy,

Hugo

tags: Error - Resolution - Team Build - Team Foundation Server