interactive c# .net 8 + code in browser
The idea is being able to to have an editor in browser where one can run c# for interactive tutorials safely(at least not getting bamboozled by an infinite loop or some code that would gain access to the server). like .net fiddle maybe not as advanced no need for nugget packages.
having looked online they were some solid option each with their own caveat:
. piston code runner engine (no longer maintained and only using mono or .net framework 3.1)
. judge0 (mono or .net framework 3.1)
tldr; did some digging in on judge0 (tried to update their Docker file to install dotnet 8 at the very least) to no avail. lots of cool tricks behind the scene with ruby, i know nothing of. but just trying to install dotnet 8 did do the trick and I face cascading errors and point of failure. i did come across something the core library enabling it (isolate). installed it an tried it works pretty good for most languages(python etc) but for .Net, no go. based on little info i found on isolate it is too restrictive to allow for .net to run in their sandbox
having looked online they were some solid option each with their own caveat:
code running engines out there
. try .net (EOL December 31, 2025). piston code runner engine (no longer maintained and only using mono or .net framework 3.1)
. judge0 (mono or .net framework 3.1)
UI editor
. monoco (solid choice for web)tldr; did some digging in on judge0 (tried to update their Docker file to install dotnet 8 at the very least) to no avail. lots of cool tricks behind the scene with ruby, i know nothing of. but just trying to install dotnet 8 did do the trick and I face cascading errors and point of failure. i did come across something the core library enabling it (isolate). installed it an tried it works pretty good for most languages(python etc) but for .Net, no go. based on little info i found on isolate it is too restrictive to allow for .net to run in their sandbox
Failed to create CoreCLR, HRESULT: 0x80070008. just wondering if there is a solution for being to do this with .Net core ? or if anyone has come across potential solution I could look into.Test your C# code online with .NET Fiddle code editor.