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
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">
-
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
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