We have an MFC applcation EXE that hosts COM objects which are the main parts of the application, this is so we can dymanically build in more functionality. Lately new code has been created using C# and made COM visible supporting the same interface. These have all typically been built against V2.X .Net runtime. We now want to be able to deploy on a client machine that may only have V4.X .Net runtime but we want to maintain compatability with the V2.X code. If the main application had been a .Net application then we could have used in the config file. This doesn't work with a non .Net host application.
Does anyone know if the same can be done for the .Net COM components, i.e. specify somewhere that they can run on v4.X without having to re-build and re-target them?