delphi - Programmatically specify which version of .NET to load -


my application native, non-.net application. however, @ times may need invoke .net services through com. needs load specific version of .net accomplish needs do. (my app uses com interface system.enterpriseservices in order programmatically register assemblies , install them in gac).

normally, use myapp.exe.config (as explained here) if information known ahead of time , didn't change between runs.

unfortunately, specific version of .net load not known until runtime (and in fact, may change between runs on same system). therefore using myapp.exe.config not work.

is there way native application supply information windows programmatically before loads .net?

(though application written in delphi, more of general windows question , answers in language welcome)

you have write own clr host, instead of relying on ijw "it works" .net feature.

if .net 4 installed on machine, link describes how it: loading common language runtime process. .net 4, can load multiple versions of clr side side in same process (with restrictions though).

additional information: use clr4 hosting api invoke .net assembly native c++


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -