How to deploy custom webpart from one server to another in sharepoint 2010

流过昼夜 提交于 2020-01-15 06:31:26

问题


I can't find any answers on how to deploy my custom webpart from one SharePoint 2010 Server to another SharePoint 2010 Server.

I have a farm solution custom-webpart developed in SharePoint 2010 and I want to move to my webpart to a different environement.

Can anybody give me step-by-step like how to deploy?

thanks.

PS: VS2010, SP2010


回答1:


Add-SPSolution fullpathtoWSP
Install-SPSolution –Identity NameOfWSP –WebApplication http://WebAppurl -GACDeployment

(give it time to deploy across the farm - you can check this status in Central Admin)

Enable-SPFeature -Identity "FeatureName" -Url http://SiteOrWebUrlForFeature



回答2:


You can package and deploy the web part as WSP

http://leedale.wordpress.com/2007/05/31/deploying-a-webpart-solution-in-sharepoint-2007-the-simple-way/



来源:https://stackoverflow.com/questions/7271052/how-to-deploy-custom-webpart-from-one-server-to-another-in-sharepoint-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!