HACKER Q&A
📣 HeckFeck

What is it like developing and deploying ASP.NET on Linux?


Dear all,

I'm investigating possible languages and ecosystems to develop a commercial web application. I'm reasonably familiar with Java but work in C# for my day job, so these are the two languages that I'm considering.

For a variety of reasons, I wish to build an entirely Linux server side. I'd like to hear your experiences running ASP.NET on Linux. Would you recommend it? Would I run into problems and frustrations because the ecosystem is still slanted towards Windows?

The main reasons in my mind to use .net are C#, the Entity Framework (ORM, DB migrations), and the Blazor templates.

But perhaps, if the Java ecosystem has good enough analogues and is better supported on Linux that might be the way to go.

Any thoughts or anecdotes will be appreciated.


  👤 jessikat Accepted Answer ✓
I've had zero issues deploying .Net on Linux, whilst developing in Windows. The docker support is really good, if you want to go that way too, and didn't need any platform-specific shenanigans to get working.

👤 bpmedley
I hosted a small site with .Net 5 and Linux. Works real well! You can use systemd, but I used supervisor.

Hosting a larger site or a saas would be even better..


👤 superchroma
It has been very easy, I have had no complaints.

👤 novantadue
namedpipes didn't work on linux last I checked, but that's fairly insignificant.