在 MOSS 2007 中使用部署的 wsp 解决方案

发布于 2024-12-18 07:06:49 字数 281 浏览 2 评论 0原文

我有一个有点愚蠢的问题,但我真的遇到了麻烦。 我有一个 wsp 项目,已使用 stsadm.exe 成功将其添加到 MOSS 2007 中,并通过 sharepoint 中央管理进行部署。这已在 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\ 中创建一个包含解决方案文件的新文件夹,所以我的问题是如何使用此解决方案使用/创建工作区。我的共享点中没有新功能、站点类型等。该解决方案是由我无法联系的另一位开发人员创建的。

i have a bit of stupid question, but i'm really having trouble with it.
I have a wsp project which i have successfully added to MOSS 2007 using stsadm.exe and deployed it via sharepoint central administration. This has created a new folder in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\ with solution files, so my issue is how to use/create workspace using this solution. I have no new feature, site type etc. in my sharepoint. The solution had been created by another developer whom i cannot contact.

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

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

发布评论

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

评论(1

腹黑女流氓 2024-12-25 07:06:49

通过 Central Admin 部署它与激活该功能不同。

功能可能属于多个范围:

Web
Site
Web Application
Farm

只有针对 Web 或网站的解决方案才能在 SharePoint UI 中激活。其他的则通过中央管理部门完成。激活该功能是指执行工作时。

Site: Site Collection Features
Web: Site Features

如果您想查看 WSP 中的内容,可以复制一份并将扩展名更改为 .CAB,然后浏览文件。任何 DLL 都可能部署到 GAC。*如果您查看其他 XML 文件,您可以看到其中的内容并猜测它们的去向。该功能很有可能是站点或 Web 范围的。如果它包含 SharePoint 计时器作业,则它将是 Web 或场范围,但也可以是站点范围。

唯一可能复杂的是功能可以标记为隐藏。如果是这种情况,该功能将不会显示在“网站”或“网站集功能”区域中。相反,您必须使用 STSADM 命令 (activatefeature) 来激活,并传递名称或 GUID 以及您想要激活该功能的 URL。您可以通过打开 WSP 并查看其中的 XML 文件来找到此信息。

*某些 DLL 可能只是功能接收器 - 将在功能激活或停用时运行的代码,以通过 OM 执行一些其他操作。

Deploying it through Central Admin isn't the same as activating the feature.

There are several scopes in which a feature could belong:

Web
Site
Web Application
Farm

Only solutions targeted to Web or Site can be activated within SharePoint UI. The others are done through Central Administration. On activation of the feature is when work is performed.

Site: Site Collection Features
Web: Site Features

If you want to see what's in the WSP, you can make a copy and change the extension to .CAB and browse the files. Any DLLs will be likely deployed to the GAC.* If you look at the other XML files you can see what's in them and guess where they are going. Chances are pretty big the feature is Site or Web scoped. If it contains a SharePoint Timer Job, it'll be either Web or Farm scoped but could be Site scoped as well.

The only thing that could be complicated is features can be marked as hidden. If this is the case, the feature won't show in the Site- or Site Collection Features area. Instead you'll have to activate using an STSADM command (activatefeature) passing the name or GUID along with the URL where you'd like the feature activated. You can find this info by opening the WSP and looking at the XML files within.

*Some DLLs might just be feature receivers - code that will run on Feature Activation or Deactivation to do some additional things through the OM.

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