.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.
Up until now, .NET has been fragmented into 4 different platforms:
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.
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
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.
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.
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!