In this post, we will discuss how to deploy a new version web part from old web part in SharePoint server 2010.
Also, you can check out:
I want to upload a new version of the web part in SharePoint Site collection in replace of my old web part. In this web part, I added some advanced functionality and I create the .wsp file from visual studio 2010 as a same old web part.
Please remember when you added the functionality in your old web part you should we use an old solution where you create your old web part in visual studio 2010. No need for the new solution or new web part. You just open your old web part or solution in visual studio 2010 and add the new functionality. And also remember you don’t deploy the web part just add the functionality and after this create the new .wsp file and follow these step:
1. Open PowerShell command and run the following command:
Update-SPSolution –Identity ApplicationWebpart.wsp –LiteralPath C:\WebPart\ForUpgrade\Update\ApplicationWebpart.wsp –GACDeployment
2. After this, you activate the feature in your site collection.
3. Now you able to see the new functionality in your web part.
4. Using this we don’t lose our data from old web part We able to see old data with new functionality.
You May Also like the Following SharePoint Tutorials: