Sharepoint WebPart,包含wsp包中的其他程序集 [英] Sharepoint WebPart, include additional assembly in wsp package

查看:212
本文介绍了Sharepoint WebPart,包含wsp包中的其他程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的Sharepoint WebParts创建了一个实用程序库。现在当我从我的WebPart项目引用这个库时,它编译得很好,但这个库并没有包含在.wsp包中。这意味着库程序集未部署到目标系统,导致WebPart失败。



有没有办法解决这个问题?我使用的是Visual Studio 08& VseWSS 1.2。

解决方案

Brij的答案部分正确,您的VSeWSS版本是问题。此功能仅在版本1.3(我推荐March CTP)中使CopyToLocal = true自动将程序集添加到GAC。


I created a utility library for my Sharepoint WebParts. Now when I reference this library from my WebPart project, it compiles fine, but the library is not included in the .wsp package. This means the library assembly is not deployed to the target system, causign the WebPart to fail.

Is there any way to fix this? I am using Visual Studio 08 & VseWSS 1.2.

解决方案

Brij's answer is partially correct, your VSeWSS version is the problem. This feature only came in version 1.3 (I recommend the March CTP) to have the CopyToLocal=true automatically add the assemblies to the GAC for you.

这篇关于Sharepoint WebPart,包含wsp包中的其他程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆