Live data from Hacker News

.NET 6 is now in Ubuntu 22.04

devblogs.microsoft.com

121–130 of 351 posts

Re: .NET 6 is now in Ubuntu 22.04

#121
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…

What kind of applications you build primarily with.net6?

Re: .NET 6 is now in Ubuntu 22.04

#122
post #40

Earlier quoted context omitted.

> too few selling points There are significant performance improvements, and the new language features of C# depend on the later versions - that might not be such a big deal, but it will become more acute as the language improves.

You can get most of the new language features to work with .Net Framework by overriding the LanguageVersion in the build. I did this to get nullable type annotations and pattern matching to work when I inherited a .Net Disaster. There are a few that require compiler interop which don't work, like using new syntax on records for specifying the fields (e.g., "record A(int a, int b)").

Not all, some rely on the runtime, like static interface methods.

Records can be enabled like this [1]

[1] https://github.com/louthy/language-ext/blob/main/LanguageExt...

Re: .NET 6 is now in Ubuntu 22.04

#123
post #34

Meh. In the end, Microsoft will betray those who trusted it. Long term, better just to pretend it does not exist and never, ever depend on anything with Microsoft name on it.

Well I guess everyone should migrate their open source projects off github. Any day now...

Re: .NET 6 is now in Ubuntu 22.04

#124

I wonder if this opens the door for .NET applications to be included in Ubuntu? Neither this blog post nor Ubuntu’s [1] mention that as a possibility. Just thinking from a Ubuntu package level, where libraries live in packages separate from executables, it might be possible to create library packages using the result of ‘dotnet store’. Then executable packages could reference them when running ‘dotnet publish’. [2] T…

Ironically, .NET is positioned to use a shared runtime but Linux has all the package manager tooling and Microsoft's never took off. The buggy nature of shared runtimes on Windows meant that the culture is to ship a full runtime with your .NET app.

I'm not sure going back to shared runtime libs is worth the headache but I guess if you were really resource constrained but running .NET it would work for you.

Re: .NET 6 is now in Ubuntu 22.04

#125

I've recently been working with a C# app that's based on a nearly out of support .net 3.X version I think. It's fully inherited from a tech partner, but we have free reign to modify it as needed. I was excited to try and port it from a Windows only older .net app to .net core 6, but unfortunately too much of it doesn't have a simple to port to equivalent in .NET 6 and it would require us to completely rewrite it. Thi…

> I really wish Microsoft would improve the install/packaging story for their C++ build tools on Windows.

Not sure if this is what you mean, but vs_installer.exe supports command line arguments like --add, so you should be able to craft a giant command line for IT to copy. Used it for work for the NodeJS equivalent of your use case.

Re: .NET 6 is now in Ubuntu 22.04

#126
post #35

I don't keep up with desktop dev, but can I develop a Linux UI using C# and .NET yet?

GTK/Gnome style UIs have supported C# for decades at this point. Including some programs that were shipped by most mainstream Distros https://en.wikipedia.org/wiki/Tomboy_(software) (not without controversy; but technically they worked well)

Re: .NET 6 is now in Ubuntu 22.04

#127

Earlier quoted context omitted.

The debugger is part of Visual Studio, which is a paid product. I don’t think it’s unreasonable to not publish the source for it.

Yeah, but the general standard is for open languages to either have an open debugger (e.g.: V8 JS) or else otherwise have support for an open debugger interface (e.g.: Rust via GDB). It's not strictly unreasonable for MS to offer a proprietary debugger, but it is bass-ackwards for the core .NET team to not offer an open source debugger or open standards compliant debugger interface to go with their open source langua…

Roslyn (the open-source compiler) can create open-PDB debugging files that are also an open-source format. You are 6 years too late to make that comment.

And I think lldb works with .NET apps.

Re: .NET 6 is now in Ubuntu 22.04

#128
post #69

Quoted post unavailable.

Not what that means. "embrace" as in EEE means embracing some pre-existing open source standard, prior to "extend"ing it with features and quirks that people start relying on. Thus making the standard irrelevant if the implementation that everyone actually uses is different. .NET is their own thing to begin with and nobody suggests rewriting core pieces of Linux with it. It would be more accurate to say, based on the…

It doesn't make sense to apply EEE here, but it doesn't stop every popular thread about .NET having someone claim EEE. But every time, it's a different stage. Sometimes it's the "embrace" stage, others say it's the "extend" stage, and others say it's "extinguish" stage.

Re: .NET 6 is now in Ubuntu 22.04

#129
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…

I just jumped on the .NET Core gravy train after 6+ years of Ruby on Rails development. I feel so productive and confident working with .NET. Ill be riding this rollercoaster with you for a while!

If you're on that .NET train check this out as well, keep it on the DL though

https://fsharpforfunandprofit.com/why-use-fsharp/

Re: .NET 6 is now in Ubuntu 22.04

#130
post #84

Earlier quoted context omitted.

Old .net has become ".net framework". I'm just glad the number-space has been sorted out. It was annoying to learn that ".NET 2", ".NET Standard 2" and ".NET Core 2" are very different things.

> Old .net has become ".net framework". From my understanding, thats not quite right. AFAIK framework was adapted to differentiate it from standard, core and mono.

It's really too bad the naming/versioning has gotten so confused. I used to be a heavy .Net user, then stepped away for a while when I changed jobs. Every time I try and come back, I get so confused. Am I looking at the right docs? Is this API available for the platform I'm on? It's bad enough with .Net, itself, but what about GUI libs? What's even supported anymore? What's actually stable and not in pre-release? It's a shame, because .Net is damn good, but the messaging around it has been awful in my experience.
Post reply on HN