开发者

Is it possible to deploy SharePoint solution (WSPs) via feature activation?

this seems to me an uphill task in SharePoint but is it possible to deploy the WSPs via SharePoint features. For instance, if we activate a certain feature then some specific SharePoint s开发者_运维知识库olutions (WSPs) should be deployed on SharePoint farm.


Yes.

You need to get a reference to the solution object itself via SPFarm.Solutions.

Once you have the SPSolution object, call Deploy (SPSolution.Deploy()) to deploy it.

SPSolutionCollection (returned by SPFarm.Solutions): http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spsolutioncollection_members.aspx

SPSolution Members: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spsolution_members.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜