Home:ALL Converter>Embed dotnet core (.NET Core) into native applications on Windows/Linux

Embed dotnet core (.NET Core) into native applications on Windows/Linux

Ask Time:2016-11-30T21:45:51         Author:The Wavelength

Json Formatter

Are there possibilities to embed dotnet core (.NET Core) environments into native processes?

My use-case would be an existing game-server where I want to offer the possibility to extend the game using C# on .NET Core on both Windows and Linux.

Bonus question: would there also be an AppDomain-concept available like in "oldschool" .NET?

Author:The Wavelength,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40890026/embed-dotnet-core-net-core-into-native-applications-on-windows-linux
David :

Yes, it is definitely possible.\n\nI found this documentation with examples:\n.NET Core Hosting Tutorial\n\nIf the link does not work anymore, search the web for \"hosting .NET Core\".\n\nAbout AppDomains ... I guess not.\nIf you use CoreClrHost.h you can provide an ID for the default AppDomain, but it seems to be the one and only AppDomain. For isolation you can use seperate processes. Maybe AssemblyLoadContext class can also be a help to you.",
2019-07-17T16:14:32
TerribleDev :

AppDomain is not coming to dotnet core. Parts of the AppDomain api will come over, but nothing directly related to the functionality you speak of. I don't believe you can embed dotnet core applications inside a native process, however inside of a native process you could boot a dotnet core process.",
2017-05-05T21:06:59
yy