2010-02-03 66 views
1

我在Visual Studio 2010上使用WSPBuilder爲SharePoint 2010創建了一個功能接收器組件。當我嘗試使用WSP Builder構建WSP時,我在輸出窗口中看到此消息:WSPBuilder找不到我的程序集

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中?

回答

1

啊......找到答案。我的代碼正在針對.Net Framework 4.0進行編譯。將其更改爲.Net Framework 3.5和Voila! WSP的建成沒有任何問題...