I’d like to be able to compile a C/C++ library so that it runs within a managed runtime in the CLR. There are several tools for doing this with the JVM (NestedVM, LLJVM, etc) but I can’t seem to find any for the CLR. Has anyone tried doing this?
Share
Microsoft already provides such a tool with Visual Studio. The C++ compiler
cl.exeaccepts the/clroption to tell it to generate managed code instead of native code. See the MSDN document How To: Migrate to /clr for information on changing your native project to support managed code.