Live data from Hacker News

.NET 6 is now in Ubuntu 22.04

devblogs.microsoft.com

21–30 of 351 posts

Re: .NET 6 is now in Ubuntu 22.04

#21

Seems like great news but I wonder if these releases help the .NET ecosystem in a meaningful anyway. Almost all .NET developers I know still use Windows even on cloud.

I've been developing ASP.NET Core Apps on Windows since 2017 (when .NET Core support was added to our FX) and have created & deployed >50 .NET Apps exclusively to Linux, primarily Ubuntu so this is a welcomed announcement.

.NET definitely has first-class support on both Linux and Windows.

Re: .NET 6 is now in Ubuntu 22.04

#22
post #19
post #3

The .NET ecosystem is giving me a lot of confidence these days. I've been on this rollercoaster since .NET Core 2.x and don't think I will be getting off any time soon. We recently upgraded from 3.1 to 6, which was a total non-event. The code base that was around for Core 2.x is still the same one we have today. Some substantial changes made to the web interfaces and hosting, but nothing in the business logic or data…

Cost... linux images should be a fraction of the cost of a Windows image. Unless, of course, you're using Azure, where they subsidize the cost of SQL Server by charging more for linux boxes/containers.

Currently, our customers are the ones running the software on their machines.

We haven’t run into a customer that wants us to host for them yet (and probably won’t ever in our market of banking).

Re: .NET 6 is now in Ubuntu 22.04

#23
Had to fix a bug in a hobby app that uses .NET Core for its backend last evening. I miss working in this ecosystem daily (back to node and rails for work), it's such a pleasure. The best developer experience I've ever had. If anyone is hiring and you use .NET... :)

Re: .NET 6 is now in Ubuntu 22.04

#24
post #16

Where do you host your .net projects? I am especially interested in anything other than azure webapp and VM's/IIS.

Hetzner & Digital Ocean are great value hosting providers, we maintain GitHub Action deployment scripts that can deploy to any generic Linux host using Docker Compose + SSH, that our latest Litestream support uses to effortlessly deploy .NET RDBMS Apps (with savings up to 40x vs Azure's recommended managed RDBMS configuration):

https://docs.servicestack.net/ormlite/litestream

If you don't want to use Docker, you can also easily deploy to Linux using rsync + supervisor:

https://docs.servicestack.net/netcore-deploy-rsync

Re: .NET 6 is now in Ubuntu 22.04

#26

Seems like great news but I wonder if these releases help the .NET ecosystem in a meaningful anyway. Almost all .NET developers I know still use Windows even on cloud.

Used .NET (Framework) since version 2.0 released 15 years ago. Been running on Linux since .NET Core 1.0 became available.

Re: .NET 6 is now in Ubuntu 22.04

#27
post #16

Where do you host your .net projects? I am especially interested in anything other than azure webapp and VM's/IIS.

Last couple times I used cloud VMs with ARM64 CPUs running some Linux. A systemd service to run asp-net only takes a few lines of text in the *.service file, like following:

    [Service]
    Type=simple
    ExecStart=/usr/bin/dotnet /some/path/myapp.dll
    WorkingDirectory=/some/path/
    Restart=always
    User=someone
    Group=someone
    
    [Install]
    WantedBy=multi-user.target

Re: .NET 6 is now in Ubuntu 22.04

#29
post #16

Where do you host your .net projects? I am especially interested in anything other than azure webapp and VM's/IIS.

As a systemd service on physical ubuntu servers. Each app running on its own port, haproxy server in front routing different domain:80s to the corresponding ports. Stateless apps so sideways scalable.

Re: .NET 6 is now in Ubuntu 22.04

#30
post #19
post #3

The .NET ecosystem is giving me a lot of confidence these days. I've been on this rollercoaster since .NET Core 2.x and don't think I will be getting off any time soon. We recently upgraded from 3.1 to 6, which was a total non-event. The code base that was around for Core 2.x is still the same one we have today. Some substantial changes made to the web interfaces and hosting, but nothing in the business logic or data…

Cost... linux images should be a fraction of the cost of a Windows image. Unless, of course, you're using Azure, where they subsidize the cost of SQL Server by charging more for linux boxes/containers.

.Net has run better on Linux (edit: better than on Windows) machines since at least before the pandemic.

I'm a Java dev, but I have also developed on .Net and running modern .Net on Linux is about as simple as it get.

Post reply on HN