Using a .net compiled dll inside native c++

前端 未结 5 1546
陌清茗
陌清茗 2021-01-07 11:31

as i understand that any .NET program gets compiled to MSIL which is fed to the CLR which compiles it to the assembly code and along with the help of JIT it executes it.

5条回答
  •  孤城傲影
    2021-01-07 11:41

    You can use the Native Image Generator (Ngen.exe) to compile a MSIL DLL to a native code DLL, but this will not allow you to run it on a system without the .NET Framework. You will still have references to other DLLs of the framework and even if you include these DLLs, it will not work on a system without the .NET framework, because the framework is more than just a collection of DLLs.

提交回复
热议问题