If you are using TDS to sync all of your TDS items in Visual Studio then you might get this error:
Exception 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. (PathTooLongException):
The reason why you are getting this error one of the TDS item paths is too long but how to I find which one is the issue as Visual Studio does not list the name of the file in the Output window. You can use Powershell and run the commands below to get the path of this file that's generating this error.
1. Open PowerShell
#change your directory
2. cd
<path to solution root>
3.cmd /c dir /s /b |? {$_.length -gt 260} > output.txt