VS extensions with .dll references

Category: visual studio extensibility

Question

Alessandro Del Sole [MVP] on Wed, 30 Dec 2015 23:33:08


Hi,

I have developed a VS extension that relies on references to some .dll assemblies. Such assemblies are packaged into my .vsix as expected but the extension fails to run when installed onto target machines where the required assemblies aren't installed. On the development machine, it runs properly (of course).

If I investigate the extension installation folder, I can see the .dll there but I can't figure out what's going wrong. The "Copy local" property for each .dll assembly is set as True.

Thanks in advance.


Alessandro Del Sole
Microsoft MVP - Visual Basic: development
http://community.visual-basic.it/alessandro/

Replies

Sergey Vlasov on Thu, 31 Dec 2015 03:25:04


Alessandro,

You may need to add the ProvideBindingPath attribute to your package class to help VS resolve .dll references in your extension.

Alessandro Del Sole [MVP] on Thu, 31 Dec 2015 13:49:44


Alessandro,

You may need to add the ProvideBindingPath attribute to your package class to help VS resolve .dll references in your extension.


Sergey Vlasov | Vlasov Studio | Visual Studio add-ins, extensions and tools


Thanks, this solved the issue.