Sharepoint WebPart, include additional assembly in wsp package

青春壹個敷衍的年華 提交于 2019-12-13 03:19:18

问题


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.


回答1:


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.




回答2:


Right click of Assembly > Properties
Set “Copy Local” property = true
Build project.
See following for more details:
http://urenjoy.blogspot.com/2009/08/add-assembly-wsp-vsewss.html



来源:https://stackoverflow.com/questions/1865969/sharepoint-webpart-include-additional-assembly-in-wsp-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!