.Net 4.5.1 Automatic binding redirection

Based on the following msdn link http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx we get information that

Starting in Visual Studio 2013, new desktop applications targeting the .NET Framework 4.5.1 use automatic binding redirection. This means that if two components reference different versions of the same strong command, the runtime will automatically add a redirect binding to the new version of the assembly in the output application config (app.config). This redirection cancels the merging of assemblies that might otherwise take place. Source app.config file unchanged

Now I am trying to use this scenario using a simple console APP and an AfterBuild event to send the assembly to the GAC. When I use the installer to install the assembly, it works to update the library (which is being consumed), there is a new folder at C: \ Windows \ Microsoft.Net \ Assembly, but the application continues to use the previos version instead of the most recently deployed i.e. if the first version was 1.0.0 and the newer version is 2.0.0, the app continues to use version 1.0.0 even though I set it to true in the .csproj file and the .Net version is 4.5.1 I can't move forward so any help much appreciated.

+3


source to share





All Articles