I have an extension for VS that should use the Gmail api to send emails to specific users in my company. During development, I get into a general problem with the version of System.Net.Http.Primitives , which somehow got confused in the Google API.
a common solution for this is to put bindingRedirect in app.config to redirect calls to a new updated version of the library. As below:
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0"/> </dependentAssembly> </assemblyBinding> </runtime>
However, this does not seem to work if my output is a Vsix package. The generated Vsix does not even have app.config.
I know a solution that adds the bindingRedirect file to machine.config , but my extensions are used by some other people, and I would rather not force them to put files in their machine configuration files.
Is there any other solution for this?
source share