是否可以通过功能激活来部署 SharePoint 解决方案 (WSP)?
在我看来,这在 SharePoint 中似乎是一项艰巨的任务,但是否可以通过 SharePoint 功能部署 WSP。例如,如果我们激活某个功能,则应在 SharePoint 场上部署一些特定的 SharePoint 解决方案 (WSP)。
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 solutions (WSPs) should be deployed on SharePoint farm.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。
您需要通过 SPFarm.Solutions 获取对解决方案对象本身的引用。
获得 SPSolution 对象后,调用 Deploy (SPSolution.Deploy()) 来部署它。
SPSolutionCollection(由 SPFarm.Solutions 返回):http:// msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spsolutioncollection_members.aspx
SPSolution 成员:http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spsolution_members.aspx
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