Loryan55
Loryan55

Reputation: 325

Is there a way to compile and execute C# code from C++ program?

I am looking for cross-platform (Windows and mono) solution to compile and execute C# code (with mono) from C++. Is there any way of doing that? I also need to a way of communicating with that assembly after, for example execute methods and etc. In Windows we can use CLI/CLR for that, but this will not work on linux...

Upvotes: 1

Views: 162

Answers (1)

Jras
Jras

Reputation: 518

This type of thing is possible. I don't believe this functionality is built into mono. Have a look at the repl loop implementation CsharpRepl. http://www.mono-project.com/CsharpRepl

Upvotes: 1

Related Questions