如何安装具有依赖程序集的 WSP?
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须手动将这些 DLL(项目引用)添加到 WSP 项目的清单中。 Visual Studio 中有一个 UI 可以帮助您完成此操作,无需直接修改 XML。
步骤:
Package
文件夹。Package.package
文件打开包设计器。在此对话框中,您还可以注册关联的安全控件和资源。另外,通过“添加现有程序集”,您可以添加仅以二进制形式提供的程序集(即不能作为源代码中的 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:
Package
folder.Package.package
file to open the package designer.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).