I am writing a VS Extension which needs to add a NuGet package to a project. I am using the interfaces suggested here, in particular the IVsPackageInstaller.InstallPackage(string, Project, string, string, bool)
method. The package gets installed just fine and the packages.config is changed to contain the relevant version - however the binding redirects that are usually generated when installing a NuGet package aren't being created.
Is there a 'correct' way to do this (i.e. calling a publically accessible API) or just the 'roll your own' kind of way where the app.config is modified effectively as if it was XML?