合并 Sharepoint WSP 解决方案文件

发布于 2024-08-19 10:12:40 字数 118 浏览 7 评论 0原文

我有多个项目/wsp 解决方案用于不同的 Sharepoint Web 部件和事件接收器。这对于开发来说很好,但是我想将生成的 .wsp 文件合并为一个文件以进行生产部署。 有办法这样做吗?我只使用 vsewss 1.2。

I have multiple projects/wsp solutions for my different Sharepoint webparts and event receivers. This is fine for development, however I would like to merge the resulting .wsp files into a single one for production deployment.
Is there a way to do so? I am using vsewss 1.2 only.

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

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

发布评论

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

评论(4

不醒的梦 2024-08-26 10:12:40

这将是痛苦的,但要真正正确地为生产推送做到这一点,您应该放弃 vsewss 1.2,在 Visual Studio 内重新组织项目并使用 WSPBuilder。

WSPBuilder 很棒,因为它不需要创建清单、ddf 和编译 CAB 等大量手动工作。

This is going to be painful, but to really do this correctly for production pushes you should drop vsewss 1.2, re-organize your projects inside of Visual Studio and use WSPBuilder.

WSPBuilder is great because it takes a lot of the manual work out of creating manifest, ddf and compiling the CAB.

匿名的好友 2024-08-26 10:12:40

您将必须自己完成 vsewss 在后台所做的大量工作。 MSDN 上有一篇关于创建 WSP 基础知识的文章在中创建解决方案包Windows SharePoint Services 3.0
WSP 是一个包含manifest.xml 和文件结构的cab 文件,重要的是您将文件放置在WSP 中的正确位置,以便将它们部署到SharePoint 中的正确位置。

我同意JD的观点

这会很痛苦,但是
确实正确地做到了这一点
生产推动你应该放弃
vsewss 1.2,重新组织你的项目
在 Visual Studio 内部并使用
WSPBuilder。

这将是重组代码和程序集结构的好时机,以便最大限度地减少需要部署的程序集数量。

如果您有任何 Web 部件,请务必检查功能 xml 文件是否全部正确,因为 vsewss 在生成其 WSP 文件之前准备并进行文本替换。
它通常在需要完整程序集名称的文件中存储 guid。

如果您要进行大量 SharePoint 开发工作,那么可能值得花一些时间来了解 manafest.xml 和其余 WSP 包的工作原理。

You are going to have to do a lot of the work that vsewss is doing in the background your self. there is a artical on MSDN about the basics on creating a WSP Creating a Solution Package in Windows SharePoint Services 3.0
A WSP is a cab file that contains a manifest.xml and a file structure, it is imortant that you place files in the right location in the WSP so they are deployed to the right location in SharePoint.

I agree with JD

This is going to be painful, but to
really do this correctly for
production pushes you should drop
vsewss 1.2, re-organize your projects
inside of Visual Studio and use
WSPBuilder.

This would be a good time to restructure you code and assembly structure so as to minimise the number of assemblies you need to deploy.

If you have any Web Parts be sure to check that the Feature xml files are all corect as vsewss preparses and does text replacment befor generating its WSP files.
It commanly stores a guid in the file where a full assembly name is requierd.

If you are going to be doing a lot of SharePoint dev work it is probly worth spending a bit of time learning how the manafest.xml and rest of the WSP packages work.

橙味迷妹 2024-08-26 10:12:40

我还没有看到一个工具可以做到这一点,但创建它应该不难:

  1. 解压缩 wsp 包(它们只是
    具有奇怪扩展名的 cab 文件)
  2. 合并目录结构
  3. 合并 manifest.xml 文件
  4. 压缩组合包

I haven't seen a tool which does this, but it shouldn't be hard to create:

  1. Unzip the wsp packages (They're just
    cab files with an odd extension)
  2. Merge the directory structures
  3. Merge the manifest.xml files
  4. Zip the combined package
我一直都在从未离去 2024-08-26 10:12:40

不将所有代码放在一个 WSP 中是有一个优点的。您可以进行部分部署,并且不必将所有代码放在一个巨大的 Visual Studio 解决方案中。

为什么不在 1 个脚本文件中编写所有 WSP 部署的脚本?这似乎是一个比摆弄 WSP 本身更透明的解决方案。

There is an advantage to not having all your code in a single WSP.. you can do partial deployments and you don't have all your code in a single gigantic Visual Studio Solution.

Why don't you script all WSP deployments in 1 script file? It seems a far more transparent solution than fiddling with the WSP itself.

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