Looks like your problem is very similar to this
But also there is a solution what we are using in our extensions.
You can create your own installer and move all necessary files into your specific folder. For this behavior you need to specify full path to your main integration dll in pkgdef
"CodeBase"="C:\Program Files (x86)\CompanyName\ProductName\integration.dll"
and vsixmanifest
<Asset Type="Microsoft.VisualStudio.MefComponent" Path="C:\Program Files (x86)\CompanyName\ProductName\integration.dll" />
files.
For VS2019 Community pkgdef
and vsixmanifest
should be placed here c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\
Subscribe on AppDomain.CurrentDomain.AssemblyResolve
. Wait when specific assembly with specific version! required - and load it from your folder (C:\Program Files (x86)\CompanyName\ProductName
).