WSPBuilder 找不到我的程序集

发布于 2024-08-20 20:40:10 字数 450 浏览 4 评论 0原文

我正在 Visual Studio 2010 上使用 WSPBuilder 为 SharePoint 2010 创建具有功能接收器程序集的功能。当我尝试使用 WSP Builder 生成 WSP 时,我在输出窗口中收到此消息:

The assembly MyAssembly.dll is unmanaged. The assembly will be excluded from the WSP package!
The defined Project Assembly seems not to be a valid assembly!
Solution compatibility: SharePoint 2010

生成的生成的 WSP 不包含我的DLL。

我的 DLL 被强命名,我想不出发生这种情况的任何其他明显原因。 知道为什么 WSPBuilder 无法将我的程序集打包到 WSP 中吗?

I am using WSPBuilder on Visual Studio 2010 to create a feature with a feature receiver assembly for SharePoint 2010. When I try to build the WSP using WSP Builder I get this message in the output window:

The assembly MyAssembly.dll is unmanaged. The assembly will be excluded from the WSP package!
The defined Project Assembly seems not to be a valid assembly!
Solution compatibility: SharePoint 2010

The resulting WSP that gets built does not contain my DLL.

My DLL is strongly named, and I cant think of any other obvious reasons why this is happening.
Any idea why WSPBuilder is not able to package my assembly in the WSP?

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

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

发布评论

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

评论(1

冷血 2024-08-27 20:40:10

啊...找到答案了。我的代码是针对 .Net Framework 4.0 进行编译的。将其更改为 .Net Framework 3.5,瞧! WSP 构建没有任何问题......

Ahh... Found the answer. My code was getting compiled against .Net Framework 4.0. Changed it to .Net Framework 3.5 and Voila! WSP gets built without any problems...

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