Embedding MS.NET C# into c/c++ (like mono)

2019-08-10 19:28发布

Is it possible to embed the MS C# compiler into an umanaged c/c++ host application and make both languages interoperate, very much like Mono does this (like here and here)?
I have a working implementation of this für my Qt based C++ Application using mono, but I'm limited (I really need the memory) by the 32bit constraint of mono on Windows (there are no 64bit releases for windows). So can this be achived with "the original" C# implementation?

BTW: I'd like to continue using GNU compilers (mingw-w64).

2条回答
狗以群分
2楼-- · 2019-08-10 20:15

Microsoft does support this; their term for it is hosting.

查看更多
叛逆
3楼-- · 2019-08-10 20:22

If you specifically want to use C# compiler, then Mono's C# compiler is managed, while Microsoft's C# compiler is native. There are some differences you cannot conquer.

查看更多
登录 后发表回答