如何安装具有依赖程序集的 WSP?

发布于 2024-10-28 00:06:01 字数 205 浏览 8 评论 0原文

我在 Visual Studio 2010 中有一个由 3 个项目组成的解决方案。

我有一个用于我的 SharePoint 2010 自定义计时器作业的项目,一个由我的自定义计时器作业使用的项目(项目 A),以及由项目 A 使用的另一个项目(项目 B)。

问题是,当我打包我的项目时WSP 仅将自定义计时器作业安装到 GAC。有没有办法同时安装所有依赖的 DLL?

I have a solution in Visual Studio 2010 that is made up of 3 projects.

I have one project for my SharePoint 2010 custom timer job, one project (Project A) that is used by my custom timer job, and another project (Project B) that is used by Project A.

The problem is that when I package my project the WSP only installs the Custom Timer Job to the GAC. Is there some way to have all dependant DLLs installed as well?

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

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

发布评论

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

评论(1

平安喜乐 2024-11-04 00:06:01

您必须手动将这些 DLL(项目引用)添加到 WSP 项目的清单中。 Visual Studio 中有一个 UI 可以帮助您完成此操作,无需直接修改 XML。

步骤:

  1. 在 WSP 项目内的解决方案资源管理器中找到 Package 文件夹。
  2. 双击Package.package 文件打开包设计器。
  3. 在屏幕底部单击“高级”;将打开显示“附加程序集”的屏幕。
  4. 单击“添加”并选择“从项目输出添加程序集”。
  5. 选择组装和部署模式(GAC 或 WebApplication = bin 文件夹)。

在此对话框中,您还可以注册关联的安全控件和资源。另外,通过“添加现有程序集”,您可以添加仅以二进制形式提供的程序集(即不能作为源代码中的 VS 项目提供)。

You have to add those DLLs (project references) manually into the WSP project's manifest. There's a UI in Visual Studio to assist you with this, no need to modify the XML directly.

Steps:

  1. In Solution Explorer within your WSP project locate the Package folder.
  2. Double-click on Package.package file to open the package designer.
  3. In the bottom of the screen click on 'Advanced'; a screen showing 'Additional Assemblies' will open.
  4. Click on 'Add' and select 'Add assembly from Project Output'.
  5. Choose the assembly and deployment mode (GAC or WebApplication = bin folder).

In this dialog you can also register the associated safe controls and resources. Also, via 'Add Existing Assembly' you can add assemblies available in binary form only (i.e. not available as VS projects in source code).

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