I have a C++ app from which I want to call .NET (C#) methods. I was going to use C++/CLI
, but it is only supported on Windows.
Since also we support the MAC, I'd like to call .NET from C++ in a way that will work on both Windows and Mac (with Mono).
What is the best way to do this?
EDIT: I should add that the c# code we wish to call is not ours. We have no way of making any changes to it. The c++ code, of course, is ours.