开发者

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

开发者 https://www.devze.com 2023-02-18 04:58 出处:网络
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开发者_运维知

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

精彩评论

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