Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We noticed our TFS build started failing with the following message:

C:\Builds\1\MyProject\MyProject Release\Sources\MyProject\MainLine\MyProject.SharePoint.EnterpriseUI.SiteDefinition\Features\MasterPagesMyProject\MasterPagesMyProject.feature: 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.

This seems rather strange in this day and age. Is there a solution to this?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

Because of the way our company names our projects, I had this same problem. We name them something like CompanyName.SharePoint.SolutionName. When you view the properties of your feature, there is a property called deployment path which usually looks like this:

$SharePoint.Project.FileNameWithoutExtension$_$SharePoint.Feature.FileNameWithoutExtension$

I ended up removing the first token, $SharePoint.Project.FileNameWithoutExtension$, and replacing it with a short name that represents our company. Doing this and trying to keep my feature names short fixed the issue for me.

share|improve this answer
    
Steve,Thank you for the suggestion. However, I cannot find the deployment path property you mention. In VS2010/Sp2010, I double click on MyFeature.feature in VS, and all I get is the Items in solution/Items in Feature dialog. Where should I be looking for it? –  laconicdev Aug 29 '11 at 14:14
1  
It's not on the main page but on the properties window. Hit F4 for this window to show. Also make sure you double click on the feature for the properties to show in this window. –  Steve Lineberry Aug 29 '11 at 14:17
    
Thanks! That worked like a charm. –  laconicdev Aug 29 '11 at 14:28

protected by Community Sep 24 '12 at 6:58

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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