1.Copy the .wsp file from old server Visual studio project debug folder .
2.Paste the .wsp into the new sever (like "C:\backup\file.wsp").
3.Open the "SharePoint 2010 Management shell" Run as Administrator mode.
4.Use the following code.
Deploy Event Receiver and Master page as farm solutions
Add-SPSolution -LiteralPath "C:\backup\file.wsp"
Install-SPSolution -Identity file.wsp –GACDeployment
Deploy Visual Webpart:
Add-SPSolution -LiteralPath "C:\backup\file.wsp"
Install-SPSolution -Identity file.wsp -WebApplication http://serverurl –GACDeployment
Deploy Sandbox solutions.
Add-SPUserSolution -LiteralPath C:\backup\file.wsp -Site http://serverurl /sites/name
Install-SPUserSolution -Identity file.wsp -Site http://serverurl /sites/name
Note:http://serverurl ----> http://servername ex:(http://Sharepoint)
2.Paste the .wsp into the new sever (like "C:\backup\file.wsp").
3.Open the "SharePoint 2010 Management shell" Run as Administrator mode.
4.Use the following code.
Deploy Event Receiver and Master page as farm solutions
Add-SPSolution -LiteralPath "C:\backup\file.wsp"
Install-SPSolution -Identity file.wsp –GACDeployment
Deploy Visual Webpart:
Add-SPSolution -LiteralPath "C:\backup\file.wsp"
Install-SPSolution -Identity file.wsp -WebApplication http://serverurl –GACDeployment
Deploy Sandbox solutions.
Add-SPUserSolution -LiteralPath C:\backup\file.wsp -Site http://serverurl /sites/name
Install-SPUserSolution -Identity file.wsp -Site http://serverurl /sites/name
Note:http://serverurl ----> http://servername ex:(http://Sharepoint)
No comments:
Post a Comment