- Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
The current documentation does not tell whether instantiating objects and calling member functions is impossible or just out of scope for this tutorial. I searched a lot online and found no more information on that.
This is something which is possible to do with Mono (using mono_object_new and mono_runtime_invoke according to https://www.mono-project.com/docs/advanced/embedding/).
Is this something that is not currently possible with .NET core ? Do you think this will be possible in the future, and when approximately would you expect it to be implemented ?
This feature is appealing because embedding C# is the best option I found to call C# from C++ in a cross-platform way:
- COM and /clr are Windows only
- reverse P-Invoke seems convoluted
- .NET DllExport does support .NET core but it is not an official dotnet component (problematic for long term maintenance) and it is not obvious that it is usable/used on Linux
- (edited 2020-06-09) CoreRT could also be a candidate but it is not clear it will be maintained in the long term, nor if it actually can build native DLLs ?
Thanks in advance.
[Edited by gewarren to add document details]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 83da7030-b5f1-72ad-71f6-424ff45b8b7f
- Version Independent ID: a98926cc-64ab-2911-e4b8-1eaf4573dfe4
- Content: Write a custom .NET Core runtime host - .NET Core
- Content Source: docs/core/tutorials/netcore-hosting.md
- Product: dotnet-core
- GitHub Login: @mjrousos
- Microsoft Alias: tdykstra