We are trying to auto-update NuGet packages in our projects with a nightly build. The reason for this is that we use an internal NuGet repository for sharing the latest version of some shared library code, and we want all our projects to use the latest.
Running nuget.exe update sort of works, BUT, it does not add binding redirects to app.config and web.config. When updating through the NuGet package manager or the Visual Studio package manager UI, binding redirects are added. The potential solutions I've thought of so far are:
- Adding binding redirects programatically when updating packages. This sounds messy to me.
- Somehow invoke Visual Studio's package manager console from outside Visual Studio. I don't know if this is even possible?
Can anyone think of a solution to this? If so, I'd be very thankful! It's been bugging me for a couple of days now.