-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET Core Libraries on Linux and MAC #38100
Comments
You can use the .NET Core hosting layer which is available on all our supported platforms. Here is the documentation https://docs.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting and some samples https://github.com/dotnet/samples/tree/master/core/hosting. |
Thank you! |
So as I am writing a host is there a way to call non-static methods, such as constructors in the host, as so far I only have gotten static methods to work. I am using coreclr.h. Also this is on linux. |
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @vitek-karas, @swaroop-sridhar |
@jnkarate the way that we recommend to do this is to call a static method which then does the more complex object construction. In this case the static method could create an object (via the constructor of your choice) and return back function pointers, etc. |
@jnkarate A similar question was asked and an example provided at dotnet/docs#18174 (comment). |
Thank you for the help I really appreciate it. |
Is there a way to call .NET Core libraries from native C++ on MAC and Linux? I know there is the C++/CLI on windows that allows you to do this, is there a way to do this on MAC and Linux?
The text was updated successfully, but these errors were encountered: