0

Customer made a branch code. I have downloaded new branch and trying to make package. VS returned an error - Error 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. New branch have really long definition, but it in TFS. How to resolve problem? Thanks!

2 Answers 2

3

The best bet for me was to move the base folder for the repository to sit directly under the "C:\" drive. Otherwise you will have to change the names of some folders that are in the path to your solution in order to shorten the length of the path.

Also, take a look at this similar question.

3
  • Thanks guys, but i see that customer made this long branch definition in TFS and code mapped for me with that long subfolders that are in the source control... Apr 27, 2012 at 14:36
  • Thanks very much! I just simply re-map the branch to a different local folder on my workspace Apr 30, 2012 at 13:25
  • Happy to help, and welcome to SharePoint StackExchange. If this answer or any other one solved your issue, please mark it as accepted.
    – skeletank
    Apr 30, 2012 at 14:02
1

If the error is during packaging it could be because the name of your Feature folder (combined with the SharePoint system folder path) is too long. By default, Features are named [project name]_[feature name]. If you properly name your Features you don't need the project name prepended. You can change the Feature folder name by setting the Deployment Path property of the Feature.

3
  • I have used Windows Server 2008 and trying to make HardLink using mklink utill. It maked folder with my source code, but VS returns the same error Apr 27, 2012 at 17:48
  • If it's the error I think it is, it has nothing to do with where your source code resides. It's where the Feature folders reside when your package gets deployed. Apr 27, 2012 at 17:56
  • simply re-map the branch to a different local folder on my workspace Apr 30, 2012 at 13:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.