简体   繁体   English

SharePoint wsp解决方案:如何在全球部署

[英]SharePoint wsp solution: How to Deploy Globally

I have created a wsp package and add it to 我创建了一个wsp包并将其添加到

Central Administration > Operations > Solution Management 管理中心>运营>解决方案管理

using the addsolution command of stsadm. 使用stsadm的addsolution命令。 When I click on the Deploy Solution menu, it transfers me to deploy to the solution page. 当我单击Deploy Solution菜单时,它会转移我部署到解决方案页面。 In this page, in the "Deploy To?" 在此页面中,在“Deploy To?”中 section, it shows me a dropdown list with entries like 'All Content web Applications'. 部分,它显示了一个下拉列表,其中包含“所有内容Web应用程序”等条目。

I want to deploy my solution globally so that it is applicable to all new web applications created after the deployment. 我想全局部署我的解决方案,以便它适用于部署后创建的所有新Web应用程序。 I have seen WSPs for which "Deploy To?" 我见过WSPs“Deploy To?” section shows only a message like "This solution deploys globally" and no dropdown list. 部分仅显示“此解决方案全局部署”而不显示下拉列表的消息。

"Globally deployed" only applies to WSP files that don't have web controls and web parts in them. “全局部署”仅适用于没有Web控件和Web部件的WSP文件。 These cannot be "Globally deployed", because the web.config of the web application you choose to deploy to is changed, ie entries are inserted in order to register your .dll's containing web controls and web parts. 这些不能是“全局部署”,因为您选择部署到的Web应用程序的web.config已更改,即插入条目以注册包含Web控件和Web部件的.dll。

I think you need to install it into the GAC - However here's a more informed answer: 我认为您需要将其安装到GAC中 - 但是这里有一个更明智的答案:

C:>stsadm.exe -o deploysolution -name MossSolution.wsp -immediate -allowgacdeployment C:> stsadm.exe -o deploysolution -name MossSolution.wsp -immediate -allowgacdemployment

this will deploy it globally. 这将在全球范围内部署。 i will check some time later for allcontenturl. 我会在一段时间后检查allcontenturl。 i have couple of batch files to deploy WSP files at some customers. 我有几个批处理文件来部署一些客户的WSP文件。 i will check them to see again in which scenario we used allcontenturl. 我会检查他们再次看到我们使用allcontenturl的情况。 but my above reply about not specifying a URL is correct that in case when WSP contains only dll for GAC, you should not specify a URL. 但我上面关于不指定URL的回复是正确的,如果WSP仅包含GAC的dll,则不应指定URL。

from this thread on the social.msdn.microsoft.com forums 来自social.msdn.microsoft.com论坛上的这个主题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SharePoint:如何将WSP程序包自动部署到远程SharePoint Server? - SharePoint : how to automatically deploy a WSP package to a remote SharePoint Server? 合并Sharepoint WSP解决方案文件 - Merging Sharepoint WSP solution files SharePoint-如何将WSP解决方案锁定到网站集? 服务器? 还有一个农场? - SharePoint - How to lock a WSP solution to a Site Collection? Server? And a farm? 是否将WSP文件远程部署到SharePoint 2010? - Remote deploy WSP Files to SharePoint 2010? 在没有wsp解决方案的情况下在sharepoint 2013中上传页面布局 - upload page layout in sharepoint 2013 without wsp solution 将具有已升级字段的InfoPath表单部署到WSP中的SharePoint - Deploy an InfoPath form with promoted fields to SharePoint within a WSP Sharepoint 2010如何添加wsp webpart - Sharepoint 2010 how to add a wsp webpart WSP在内部究竟如何部署dll - How exactly does a WSP deploy a dll internally Sharepoint 2010,将Webpart类型从一个Sharepoint包(.wsp)解决方案加载到另一个项目中 - Sharepoint 2010, loading webpart type from one sharepoint package (.wsp) solution into another project 部署WSP时,Sharepoint 2010在Sharepoint站点中自动创建和添加Webpart - Sharepoint 2010 Create and Add Webpart Automatically In Sharepoint Site When Deploy WSP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM