Sharepoint WebPart, include additional assembly in wsp package

2.4k views Asked by At

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.

2

There are 2 answers

1
Francisco Aquino On BEST ANSWER

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
Brij On

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