Miles Watson
Posted on November 14, 2020
.NET 5 is the latest and greatest version of .NET from the folks over at Microsoft, and it's better than ever. Almost everyone should migrate.
What's all the fuss?
Up until now, .NET has been fragmented into 4 different platforms:
- Framework
- Core
- Standard
- Xamarin
As you can imagine, this leads to issues with code compatibility, especially when developing cross-platform applications. .NET 5 is an evolution of Core which replaces the need for Standard. It provides a unified platform on which you can build any application.
Why should I care?
There are three main reasons you should switch over:
- Unified platform helps with code reuse across multiple platforms
- Language updates to C#, F#, and VB
- Performance improvements across the board
Is migrating my applications difficult?
In most cases, migrating to .NET 5 can be done in two steps:
- Update to the latest version of the SDK (this can be done by updating VS)
- Change the target framework in your project file (.csproj for C#).
Make sure to check any breaking issues before updating - here are breaking changes for .NET Core 3.1 to .NET 5.0.
Why shouldn't I migrate?
There are some older technologies that are no longer supported in .NET 5:
- Web Forms
- Windows Communication Foundation
- Windows Workflow
Newer alternatives to these can be found on Microsoft Docs, but they may take time to implement.
Footnote
If you enjoyed reading this, then consider dropping a like or following me:
I'm just starting out, so the support is greatly appreciated!
Disclaimer - I'm a (mostly) self-taught programmer, and I use my blog to share things that I've learnt on my journey to becoming a better developer. Because of this, I apologise in advance for any inaccuracies I might have made - criticism and corrections are welcome!
Posted on November 14, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.