We are developing addons for an other application. The application was built with .Net 4.5 and also runs on .Net 4.5. Our code is called via reflection from this application.
Is it possible to build our assemblies with higher .Net version (e.g. 4.6.1 or 4.7) than the application was build? (assumed the higher .Net run time is installed on the machine)
This what I found on MSDN (https://learn.microsoft.com/de-de/dotnet/framework/migration-guide/version-compatibility)
An app can control the version of the .NET Framework on which it runs, but a component cannot. Components and class libraries are loaded in the context of a particular app, and therefore automatically run on the version of the .NET Framework that the app runs on.
That means for me: NO
On the other hand I found that article: Loading an assembly targeted for .NET 4.5 on a .NET 4.0 app domain If I interpret that article correctly (in context of .Net 4.0 and 4.5), the answer was there: Yes. It is no problem to load a .Net assembly with higher version (here 4.5) into an app build with and running on a lower .Net version (here 4.0)