IjwHost on Linux? #66117
-
I have an existing managed C++ library that I'd like to try using on Linux (native app using this managed C++ library). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @Moonfish, C++/CLI is a Windows-only technology and not recommnded to build new code on top of. The best option is to port the native library to C# (newer language features like function pointers will make this easier), and if that is not feasible, you can make the C++ library entirely native and design a communication layer between the native and managed parts of your app through P/Invokes. You can discuss more about it on https://developercommunity.visualstudio.com/t/netcore-ccli-for-linux-and-macos/873014. |
Beta Was this translation helpful? Give feedback.
Hello @Moonfish, C++/CLI is a Windows-only technology and not recommnded to build new code on top of.
The best option is to port the native library to C# (newer language features like function pointers will make this easier), and if that is not feasible, you can make the C++ library entirely native and design a communication layer between the native and managed parts of your app through P/Invokes.
You can discuss more about it on https://developercommunity.visualstudio.com/t/netcore-ccli-for-linux-and-macos/873014.