locked
Can one ILMerge a third-party dll into a plugin RRS feed

  • Question

  • An associate is adding functionality to a plugin with a third party api.  He adds the namespace and all and uses ILMerge to put every plugin assembly along with the third-party api dll into a single dll.  It registers, but the resulting operation errors saying it can't find the third-party methods.

    Is this possible or does this have to be implemented as a proxy related api?

    Wednesday, March 11, 2015 9:35 PM

All replies

  • Hi,

         What you are trying is possible and with ILMerge it is possible to include 3rd party Dll in single Dll. If you need proxy or not will depend on the Dll you are trying to merge. We have used SharePoint Dlls without using proxy in our code for custom build and had to use proxy approach for some other API so it depends on Dll you are trying to include.

    Hope this helps.
     
    -----------------------------------------------------------------------
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    Wednesday, March 11, 2015 10:19 PM
  • Thanks,

    Do you have any diagnosis points for this?  What tells you the dll will require proxy handling?  .NET level?

    md

    Thursday, March 12, 2015 1:10 PM
  • Hi,

         Refer to following link. This clearly explains this clearly. This is to do with managed / unmanaged Dll.

    http://stackoverflow.com/questions/3910356/ilmerge-using-2-third-party-dlls-c

    Hope this helps.
     
    -----------------------------------------------------------------------
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    Friday, March 13, 2015 10:43 AM