Here's a quick tip about file path lengths in Visual Studio 2008, Team System. I have been tweaking the process templates for our rollout of this system and came across a file path length limitation.
My default project location for VSTS was the typical location under My Documents/Visual Studio 2008/Projects. Well, if you keep that location, add one or two folders for organization, then you'll bump into this issue.
This is particularly annoying when attempting to upload a new process template. All the images, etc., are pathed in the XML...and that path then exceeds the length that VSTS can handle. When that happens, the upload fails and you have to scour the logs to figure out why.
So, if you are just starting out with Visual Studio 2008, be sure to create a default location for your projects under a very short root path. I prefer to use c:\action. That keeps my projects at the top of the folder structure. They are easy to find and the path length is very short.
On a related note, let's say you've created a project and added it to source control, but now you want to change the local path (similar to setting the working folder in VSS). It's easy to do, but tucked away. You need to select File --> Source Control --> Workspaces. Edit the workspace you want to move. Easy enough, but not readily apparent.
1 comment:
Thanks for the tip. This really seems like a bug in VS, since the Windows limit on path size is way bigger than this.
Post a Comment