Welcome to Comunidade Bloggers |create|it| Sign in | Join | Help

André Vala

SharePoint
PerformancePoint
.Net

News

  • Vote for us in theEuropean SharePoint Community Awards 2012
    Locations of visitors to this page

    Comunidade Portuguesa de SharePoint

    View André Vala's profile on LinkedIn

    © André Vala and Create IT, 2006-2011. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André Vala and Create IT with appropriate and specific direction to the original content.

Renaming a Feature in SharePoint Tools for Visual Studio 2010

If you’ve created SharePoint projects using SharePoint Tools for Visual Studio 2010, you probably know that, when you create a SharePoint Feature and generate the SharePoint package (WSP file), the final name given to that feature is not what you expected.

If you create a new SharePoint project named MyProject, and then create a feature inside it named MyFeature, the final name and folder for the feature will be MyProject_MyFeature.

I don’t know about you, but I like the features to have the names I give them, without the project’s name added to them. The good news is that you can change it :)

Here’s how:

  1. On Solution Explorer, double-click the Feature name to open the Feature Editor
  2. On Packaging Explorer, click on the Feature name
  3. On the Properties window, change the value in the Deployment Path property

Renaming a SharePoint Feature

By default, the value for this property is:

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

To remove the project’s name from the Feature name, just remove the first token (and the trailing underscore), leaving it as:

$SharePoint.Feature.FileNameWithoutExtension$

Posted: Saturday, August 21, 2010 6:28 PM by andrevala

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS