News for hackers. Stuff that matters.

Ask HN: 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.

( 4 comments | 3 points | on HN )
Re:Ask HN: What is it like developing and deploying ASP.NET ... by jessikat on Monday August 22, 2022 @07:42PM (#32558750)
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.
Re:Ask HN: What is it like developing and deploying ASP.NET ... by bpmedley on Monday August 22, 2022 @07:08PM (#32558469)
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..

Re:Ask HN: What is it like developing and deploying ASP.NET ... by superchroma on Monday August 22, 2022 @09:33PM (#32559525)
It has been very easy, I have had no complaints.
Re:Ask HN: What is it like developing and deploying ASP.NET ... by novantadue on Monday August 22, 2022 @09:54PM (#32559652)
namedpipes didn't work on linux last I checked, but that's fairly insignificant.