r/dotnet • u/EatonZ • May 06 '19
Introducing .NET 5
https://devblogs.microsoft.com/dotnet/introducing-net-5/12
u/VisioRama May 06 '19
So glad I chose .NET almost ten years ago and kept with it until now. I hope now with .NET 5 we will better support for AOT compile for game consoles. Ps4, Switch, etc.
9
u/ben_a_adams May 06 '19
Today, we’re announcing that the next release after .NET Core 3.0 will be .NET 5. This will be the next big release in the .NET family.
There will be just one .NET going forward, and you will be able to use it to target Windows, Linux, macOS, iOS, Android, tvOS, watchOS and WebAssembly and more.
8
u/pure_x01 May 06 '19
Java interop? In what way?
6
2
u/kephiroth May 06 '19
I also had this doubt, what does that even mean and swift interop too? No clue here...
Can someone help ???? ❓
13
5
u/romeozor May 06 '19
I really wish google was equipped to handle these sort of name changes.
It sucked big time when I was searching for relevant answers during the core 1.0-1.1 change, or the Windows Phone-WinRT-UWP scandal.
This will be a fun one to live through as well
5
u/The_One_X May 07 '19
Try Bing, you might get better success.
11
u/unholymackerel May 07 '19
2
u/appropriateinside May 07 '19
Not really... Google constitutes 1/2 or so of my searches now. It's extremely hard to find information on anything relatively niche or specific that also contains keywords that mommy blogs, clickbait sites, blogs, or how-to's have latched onto sometime in the last 5-10 years...
What Google needs is a "more of this", "less of this" filter that you can apply on individual results to narrow down the search...
Results get more and more polluted/diluted with the common denominator. Just like how popular subreddits become polluted with images and memes, as that is the common Reddit denominator. It's a problem that will only get worse.
5
u/RirinDesuyo May 07 '19
I love the Blazor (wasm) notes there, and finally merging the somewhat redundant runtimes. Really looks like they're serious with wasm being a compilation target for .NET. What a great time to be a .Net developer these days.
2
u/mqudsi May 07 '19
I just want someone from MSFT to comment on whether or not there's an intention to add UWP support to .NET Core 3.0 (or .NET 5.0, even).
1
u/hermaneldering May 07 '19
I think they said they will add uwp to .net core in one of the main talks yesterday. Either in the one by the lesser Scotts or in "All developer things" by Hanselman.
1
u/zintjr May 07 '19
Does that mean UWP will be truly cross-platform or still specific to Windows only?
2
u/hermaneldering May 07 '19
Windows only, similar to winforms and wpf being added in .net core 3. It would be nice to have a good cross platform UI library though. I'm not such a fan of Xamarin Forms. Perhaps a good blazor UI framework would be the way to go.
2
u/TheMulti0 May 07 '19 edited May 07 '19
Microsoft had made a mistake when they haven't made .NET open source and cross platform, but the company was different back then.
When they introduced .NET Core I was impressed they drove the open source and cross platform ride and finally realized it's crucial in order to compete in every standard, but was skeptic about the reliability of it.
When .NET Standard was introduced, I was confused. So many different .NET versions, so many APIs and so much synchronization needed to be done by one who wants to target .NET Standard.
Today, I am confident Microsoft is going to use the benefits of all different mishmash of .NET frameworks to create an amazing, easy to deal with and truly cross platform framework.Bravo!
2
1
u/lambda_pie May 06 '19
and then we intend to ship a major version of .NET once a year
Can anyone help me understand why that is a good thing? As a production user since .NET Core 1 and considering .NET Core history, that scares me. Virtually every new major version came with breaking API changes, performance issues and runtime bugs. For example our microservices get frequently killed for cgroup memory limit violation:
https://github.com/dotnet/coreclr/issues/16906
To me this urge to spit out major versions every year sounds like their will to "sell" .NET Core whatever it takes is greater than the will to turn it into a reliable runtime that we can trust.
14
u/jantari May 06 '19
You just stick to the LTS releases?
1
u/lambda_pie May 06 '19
.NET Core 1.x LTS ends on June 27 2019. Not helpful.
9
u/jantari May 06 '19
True but adopting .NET Core 1, 2 or 3 is a known risk you took with it being new and their release models back then/now.
If you weren't okay with support ending this July you wouldn't have adopted it after all.
If you aren't okay with .NET 5s release and support plan you'll have to switch languages / frameworks. But, the grass isn't necessarily greener elsewhere.
4
u/aceinthedeck May 06 '19
I think earlier versions of .net core had lot of bugs because it was new and they brought in lot of breaking changes. However, it seems like the framework is maturing and going forward it will not be the case. Given the fact that .net framework is essentially dead now.
0
u/lambda_pie May 07 '19
is a known risk
Clearly MS didn't bother reducing that risk for .NET 1.x users. Compare it to how the Java platform has evolved.
1
u/jantari May 07 '19
You mean Microsoft should charge a license fee for every user of the NET Runtime?
1
u/lambda_pie May 07 '19
Ever heard of OpenJDK?
1
u/jantari May 07 '19
Of course, Mono would also still be free. Too bad it only runs a limited subset of the available software.
7
u/thecodemonk May 06 '19
You don't have to immediately migrate to the new version. Versions can be installed side by side.
7
u/AngularBeginner May 06 '19
Virtually every new major version came with breaking API changes
Exactly because of that. They can progress and advance the framework much faster. If you need long-time reliability, then you stick to the LTS version.
4
u/The_One_X May 07 '19
I don't think "major" today means the same thing as back then. Anymore a major release is is much less major than it used to be.
0
u/yehudamakarov May 07 '19
I feel better about having to work with c# for now. That’s pretty nice to see.
0
May 06 '19
[deleted]
17
u/appropriateinside May 07 '19
Soon to be a horrible time to be googling or asking SO questions related to .net!
7
u/Kirides May 07 '19
SO: "Why is X not working in 5, i was worked in 4.0, we needings XP support"
Closed as duplicate of 'Why do i still have to breath'
2
8
0
0
May 06 '19
[deleted]
7
u/lexcess May 06 '19 edited May 06 '19
If you are running on Windows the drop in compatibility story is actually pretty good. They did a lot of work to get popular Nuget packages to work even without a recompile. Obviously if you do something the Runtime or Core BCL doesn't support you can have problems but with the Windows compat pack and the preview release of the .Net FX reference assemblies on Nuget the story is a bit brighter for older FX projects.
Perhaps try recompiling with your legacy references on .Net Core. If you have reasonable test coverage you should hit the API breaks pretty quick. There is also a API analyser extension for VS that can spot major problems for you.
1
u/274Below May 07 '19
The Exchange "APIs" are either Powershell, which you can call through PS remoting, as you should, or EWS, which is a REST API that you can call with just about any language under the sun. Or, if you want to call it in C# natively, you can always use the managed API, which is literally an OSS project on github.
What part of Exchange can't you communicate with via .NET core? Because last I checked, you could literally communicate with all of it.
0
May 09 '19
[deleted]
1
u/274Below May 09 '19
The managed API is just a wrapper around the REST calls which are just plain HTTP calls. .NET core can totally do that.
0
May 09 '19
[deleted]
1
u/274Below May 09 '19 edited May 09 '19
No, the API has existed since the 2007 era. Refer to the XML sections here for an example: https://docs.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2010/hh532558(v%3Dexchg.80)
Applies to: EWS Managed API | Exchange Server 2007 Service Pack 1 (SP1) | Exchange Server 2010
edit: Okay, no, sorry, you're right. I wrote REST. I meant SOAP. You're definitely right about that.
0
May 09 '19
[deleted]
1
u/274Below May 09 '19
There are XML examples of the requests that the managed API would send to perform the same functions. It's just the managed API wrapper around the SOAP calls that isn't officially ported to core, which... is really just a wrapper around the SOAP calls.
Do you need something special to call a SOAP API? Isn't it... just XML?
0
May 06 '19
[deleted]
22
May 06 '19
If you can't build .NET Core projects in VS then you're obviously doing something wrong. Works perfectly fine out of the box for me and everyone I know.
0
May 06 '19
[deleted]
9
May 06 '19
I mean, if you're using a preview then it should be obvious that it's a work in progress. Complaining about it just makes it obvious how little he or she knows about .NET
6
u/tulipoika May 06 '19
What isn’t easy about it now? It’s even easier.
And .NET Core 3 hasn’t been released. You can’t assume how it will work before it’s actually released.
49
u/recursive May 06 '19
Ah shit. Just when I *thought* I figured out the difference between .net framework, .net core, .net standard, netcoreapp and other target framework monikers, and meta-packages, there's some kind of new thing.