Search code examples
dllvisual-studio-extensionsvsixmahapps.metro

Deploy 3rd party dll files with VSIX Visual Studio extension


I am developing a Visual Studio Extension. I have used a 3rd party dll for UI controls. It adds 2 dll files as reference. But when I deploy my Visual Studio extension, the dlls does not seem to get copied. How do I deal with this scenario and deploy the dll from 3rd party package along with VSIX installer ?

On investigation, I found out that the dlls are getting copied properly inside "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions" folder, but somehow the extension is unable to load them.


Solution

  • I have resolved the issue. The problem was that the assembly was not in the list of references and therefore it was not getting loaded. To load the assembly manually, I used AppDomain.CurrentDomain.Load() method