3

I have renamed my SharePoint project "SolutionName.ProjectName" in Visual Studio 2013, but the wsp is still being generated as the "SolutionName". How do I ensure the wsp takes the name of the project

2 Answers 2

3

Open The Package.Package file and change then Name attribute.

Example

<package xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" 
dslVersion="1.0.0.0" Id="d3150724-5644-479c-99f3-fc99af5bfdc6" 
solutionId="d3150724-5644-479c-99f3-fc99af5bfdc6" resetWebServer="true" 
sharePointProductVersion="15.0"
name="NEWNAME" 
xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel">
2
  • I changed the Name attribute in the file but now I get a deployment error - "Error occurred in deployment step 'Add Solution': File not found "OldName" Commented Apr 6, 2015 at 14:55
  • 1
    Try closing VS and opening it again. Commented Apr 6, 2015 at 14:57
2

The WSP name for a solution is defined within the Package\Package.package file of the solution as the “name” property inside the element.

You need to open the code/project using Visual Studio, go to the Package file and then change the "name" attribute value to the desired modified name, and rebuild it. VS2010: Changing the SharePoint wsp file name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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