Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
ClearScript
A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).
I'm a long way from rebuilding this in .NET 5, but based on this it looks like you may need to move to something Roslyn based.
I have a working example that you can look at: https://github.com/ddashwood/CodingTrainer. This was a project I did for my Masters degree, which allows users (in my case, the users were C# students) to type in code, then it runs the code and analyses whether it's correct. From memory, the CodeHost, PartiallyTrusted and SandboxHost projects are the ones you'd need. Feel free to PM me if you need any more info.
Along the same lines, I use Microsoft ClearScript which uses JavaScript.