[英]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.