WSPBuilder 找不到我的程序集
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊...找到答案了。我的代码是针对 .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...