I have an application which currently runs in the .NET 3.5
framework. However, in the event that SharePoint 2013 is installed, the application needs to load up a different set of dlls that will utilize .NET 4.0 and/or 4.5
. From my understanding, creating a 'bootstrapper' would handle the event.
Going around and evaluating the SharePoint version will be easy enough, but how do I set up the logic for which set of dlls to load for the application? I am currently working off of the assumption that it will deal with dynamically loading the dlls, but I am unsure as to the best method to approach this.
What would be the best way to dynamically choose between .NET versions?
Some links I have already looked into include: Specifying the location of .Net configuration files and MSBuild, conditional NET runtime and Conditional Compilation and Framework Targets. But I was not able to glean a lot of useful information from them. Currently I am exploring along the line of this question: DllImport vs LoadLibrary, What is the best way?