by jordigh · 3y ago · 0 comments
I have vague memory of reading somewhere that Mono or maybe just MonoBuild was completely obsolete since everything was now open source in .NET.
Does Mono still have a reason to exist? Is it all incorporated into .NET now?
(btw, I still don't get why it's called .NET, and I don't know if assemblies are native code or bytecode wrapped in the same binary format as .exe, where is the ".NET for hardcore open source Linux nerds" blog post?)
In 2016 they started building .NET Core which is new open source implementation (built mostly by Microsoft) which runs on more platforms. For a while all three existed side by side.
Eventually .NET Core caught up and overtook the other implementations. These days Framework is legacy. Core has been renamed to just .NET (since it's now _the_ runtime) and Mono (as far as I know) has been totally replaced by it.
This is all from memory, so apologies for any inaccuracies!
I think there is nothing else left from the Mono project like the class library or the compiler/toolchain.
Still too many enterprise products stuck in the old ways.
As I mentioned a few times, I have been involved in projects were that full rewrite happened to be .NET Framework => Java, which shows how the customers were mad at what was left behind.
Although there is some irony in that, as Java's Python 2 problem is the transition into Java 9.
Microsoft eventually created .NET Core, their own cross-platform implementation of .NET, which eventually became .NET 5, 6, 7, and now 8.
Mono should not be used for new projects. .NET 8 is vastly superior. Mono is only still used for things like Unity who have decided to not or slowly migrate off of Mono.
For most .NET apps you can use .NET 5/6/7/8.
[0] https://devblogs.microsoft.com/dotnet/dotnet-8-performance-i...
.NET can now do either one - you can ship PE bytecode and require the dotnet runtime, which works in practice similar to e.g. Python or Ruby (you run `dotnet ./myapp.dll`), or you can precompile it into a single platform-specific binary that is just a native code app, similar to Go's static binaries.
If you're running Windows, Mac, or Linux I'm not aware of major reasons to use Mono.
[0] https://www.mono-project.com/docs/about-mono/supported-platf...
Edit: seems some part of Mono still live.
From .NET 5 onwards, the framework is cross-platform. So as a separate thing, Mono isn't usually needed or part of the mainstream any more.
> I don't know if assemblies are native code or bytecode wrapped in the same binary format as .exe,
Yes, they are. Either, depending on your build target.