Add DLL to SharePoint bin folder

1.6k views Asked by At

I'm building a SharePoint custom web part. I need to add a reference in my project to a DLL file. That file doesn't have a strong name and since it's a third party assembly,I can't generate the strong name.

I've been advised to copy the DLL directly to the SharePoint bin folder.

So, where can i find that folder, and after I copy the DLL to that destination, I just need to add as a reference (just like any other file)?

2

There are 2 answers

0
Martin On

I was facing the same problem, this is what helped me, although the answer might be a little bit late by now.

  • Open wsp package in Visual Studio.
  • Go to Advanced Tab
  • Click Add and choose the dll
  • Set Deployment Target = Web Application
  • add additional Safe Controls Entries / class resources

Hit OK and save your changes....

Please note:

0
taquion On

I have done this before for some sharepoint 2010 webparts projects and when googling I found this article, there it is explained how to sign third party assemblies with strong name. Basically you disassemble the dll first with ILDASM.exe and then you reassemble with ILASM.exe providing a *.snk file previously done with sn.exe. All this is explained in detail in the given article.

Hope it helps