Home > Development > VS2010: Changing the SharePoint wsp file name

VS2010: Changing the SharePoint wsp file name

The default file name given to your solution will match the project name.  I.e. a SharePoint project SharePointProject1 will result in a package SharePointProject1.wsp.

If you want VS to spit out a different name, modify the name attribute in the Package\Package.package file for your project.

Code Snippet
  1. <?xml version=1.0 encoding=utf-8?>
  2. <package xmlns:dm0=http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core dslVersion= Id=93b1d26c-eca7-4dc6-8a0e-6e96bc980c63 solutionId=93b1d26c-eca7-4dc6-8a0e-6e96bc980c63 resetWebServer=false name=SharePointProject1 xmlns=http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel>
  3. <features>
  4. <featureReference itemId=896bdcb0-4dd8-428a-a028-77e509bc9108 />
  5. </features>
  6. </package>

You may need to restart VS after making this change.

  1. K
    March 13, 2012 at 11:11 am

    Thanks, worked out great for my project!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 40 other followers

%d bloggers like this: