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?
NET Core runtime allows you to run applications on Linux that were made with .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With