C# .NET Projects Can Be Compiled and Run in MacOS or Linux
My primary goal of hacking was the intellectual curiosity, the seduction of adventure.
— Kevin Mitnick.
Before I never thought that a .NET solution project can be compiled and run on Linux. But as I’ve checked the GitHub of dotnet-core
, I found there were many ways to do it.
First is through Mono
, which is a compatible open source alternative to the .NET Framework (the latter is a proprietary of Microsoft). You can create WPF (Windows Presentation Foundation) forms using it and other UI intensive .NET projects. Mono is sponsored by Microsoft, but it is unofficially supported.
The other solution is, if your working on a .NET core project you’ll be using a dotnet-core
. Microsoft published last 2014 an open source .NET SDK (Software Development Kit) (bare bones) which was derived from ASP.NET, they’ve called it dotnet-core
. Basically, it is a stripped down version of .NET framework without all the heavy UI and forms. The project itself is modular and can be compiled in different platforms.
So if you’re planning to use C# or a .NET dependent language, don’t be afraid as it can be run and created using different platforms.
If you’re planning to install the package on Arch here is the command:
pacman -Sy dotnet-core
Or check the mono flavor:
pacman -Sy mono
That’s it guys, a brand new knowledge for me. Probably on my next project I’ll try to use .NET Core. 🤔 Hope you guys, enjoyed this article and as always live life.