Issue
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?
Solution
Yes, it is definitely possible.
I found this documentation with examples: .NET Core Hosting Tutorial
If the link does not work anymore, search the web for "hosting .NET Core".
About AppDomains ... I guess not. If 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.
Answered By - David Answer Checked By - Candace Johnson (WPSolving Volunteer)