> do something like that
What's wrong with this? Genuine question.
Modern .NET is fully open-source with a permissive MIT licence. This includes the compiler and analysers infrastructure (Roslyn), the package manager (Nuget), and even the shell language (PowerShell).
It is a superb alternative to Java, Go, and similar languages. Why is using .NET on Linux or MacOS such a weird thing?