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

发布于 2024-08-02 02:00:17 字数 343 浏览 1 评论 0原文

我创建了一个 wsp 包并将其添加到

中央管理> 操作> 解决方案管理

使用 stsadm 的 addsolution 命令进行 。 当我单击“部署解决方案”菜单时,它会将我转到部署解决方案页面。 在此页面的“部署到?”中 部分,它向我显示了一个下拉列表,其中包含“所有内容网络应用程序”等条目。

我想在全球范围内部署我的解决方案,以便它适用于部署后创建的所有新 Web 应用程序。 我见过 WSP 的“部署到?” 部分仅显示诸如“此解决方案在全球范围内部署”之类的消息,并且没有下拉列表。

I have created a wsp package and add it to

Central Administration > Operations > Solution Management

using the addsolution command of stsadm. When I click on the Deploy Solution menu, it transfers me to deploy to the solution page. In this page, in the "Deploy To?" section, it shows me a dropdown list with entries like 'All Content web Applications'.

I want to deploy my solution globally so that it is applicable to all new web applications created after the deployment. I have seen WSPs for which "Deploy To?" section shows only a message like "This solution deploys globally" and no dropdown list.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

骑趴 2024-08-09 02:00:17

“全局部署”仅适用于其中不包含 Web 控件和 Web 部件的 WSP 文件。 这些不能“全局部署”,因为您选择部署到的 Web 应用程序的 web.config 已更改,即插入条目以便注册包含 Web 控件和 Web 部件的 .dll。

"Globally deployed" only applies to WSP files that don't have web controls and web parts in them. These cannot be "Globally deployed", because the web.config of the web application you choose to deploy to is changed, i.e. entries are inserted in order to register your .dll's containing web controls and web parts.

你的呼吸 2024-08-09 02:00:17

我认为您需要将其安装到 GAC 中 - 但是这里有一个更明智的答案:

C:>stsadm.exe -o 部署解决方案-名称
MossSolution.wsp -立即
-允许gacd部署

这将在全球范围内部署它。 我会
稍后检查
所有内容网址。 我有几批
用于在某些位置部署 WSP 文件的文件
顾客。 我会检查一下
再次在我们使用的场景中
所有内容网址。 但我上面的回复
关于不指定 URL 是正确的
如果 WSP 仅包含
对于 GAC 的 dll,您不应指定
网址。

来自此帖子 在social.msdn.microsoft.com 论坛上

I think you need to install it into the GAC - However here's a more informed answer:

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

this will deploy it globally. i will
check some time later for
allcontenturl. i have couple of batch
files to deploy WSP files at some
customers. i will check them to see
again in which scenario we used
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.

from this thread on the social.msdn.microsoft.com forums

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文