Great suggestion, this is probably the killer app for this. I heard that the Mono and .NET teams are working on a new linker that should also help bring down the bloat, and help make .NET via WebAssembly less ridiculous in terms of overhead.
I have no idea if it would be compatible with DotNetAnywhere
I have no idea if it would be compatible with DotNetAnywhere
https://github.com/dotnet/announcements/issues/30