1

我在 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 中吗?

4

1 回答 1

1

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

于 2010-02-03T18:56:01.620 回答