How to include dlls of library projects in wsp?

Oct 8, 2009 at 1:59 PM

Hi,

I developed an event handler feature which uses two library projects.

How do I make sure that the compiled library dlls  will also  be deployed to GAC using the wsp of the feature?

At this time only the feature dll is in th wsp, and feature activation fails due to missing dlls.

Thanks in advance!

 

Nov 10, 2009 at 1:33 PM
Edited Nov 10, 2009 at 1:52 PM

Hi,

This exact problem, I also encountered. It is because assemblies already in the GAC are not copied to the output directory by Visual Studio.

One possible solution is to create a post build script, which copies the required the assemblies to the directory WSPBuilder looks in.

Good luck! 

Mar 21, 2011 at 2:11 AM

You can simply add the library projects as References to your WSP Builder project - if there are in the same solution, use a Project Reference, otherwise add a File Reference by browsing to their location on the file system.  Make sure the assembly has Copy Local set to true.

Mar 31, 2011 at 3:22 PM

OiDatsMyLeg was right.

Thank you!

JH