user

4 Questions to Ask Before Migrating to .NET 8

Introduction

Crista Perlton

Crista Perlton


LATEST POSTS

How Licenses Work with Chocolately 22nd March, 2024

How to Handle npm Dependencies with Lock Files 16th January, 2024

.NET

4 Questions to Ask Before Migrating to .NET 8

Posted on .

.NET 8 is now here! If you’re using .NET Framework, it’s time to start planning. If you’re on .NET 5, 6 or 7, the time to upgrade is now.

The latest release has brought matured and upgraded features from .NET 5 to .NET 7. Security has been improved; Hot Reload introduces a faster way to view changes; with C# 10 and F# 6, developers can make code simpler and more expressive; and much, much more.

Most importantly, .NET 8 will be supported for three years, almost three times as long as .NET 7 will be supported.

We’ve put together four major questions any DevOps department should consider in their migration toward .NET 8.

“Do I really need to migrate?”

If you’re operating with .NET 5, 6, or 7: Yes, upgrade to .NET 8.

There are several benefits to .NET 8, but the most important is the long-term support. Microsoft will support this release for 3 years, unlike .NET 7 which will lose support on May 14th, 2024.

Although it’s a “major number” increase, the new .NET series is incremental in its changes. Think of it like 4.7 to 4.8, and less like 4.6 to 5.0. If you’ve already migrated from your old .NET Framework applications to .NET 5, 6 or 7, then it’s a simple setting in Visual Studio to start using .NET 8. Everything should mostly work the same way.

If you’re operating with .NET Framework: Not yet – but start planning for it.

.NET Framework will be supported indefinitely since it’s tied to the operating system. The issues come from the reliance on the said operating system. If you have an old OS, you cannot guarantee that your next OS will allow you to install Framework (or whichever older version of .NET you want to install). If you can, you’ll likely need some serious workarounds to get proper functionality.

If you were already planning on migrating and needed that extra push, .NET 8 is your catalyst, since it’s more mature than .NET 5 and has long-term support.

“What will it cost to migrate?”

As you can expect, it will cost time and effort to migrate to .NET 8, but not money since there’s no price for upgrading.

If you’re upgrading from .NET 5, 6 or 7 to .NET 8, the cost will be minimal – and might be as simple as changing the target framework in your Visual Studio project.

If you skipped .NET 5 and are upgrading from .NET Framework or .NET Core, it’ll cost a lot more time and human resources. Expect some delays in moving your NuGet libraries and/or retraining your team.

You may find some help with Microsoft’s .NET Upgrade Assistant, but the migration will still be time-consuming if your organization rarely upgraded in the past.

“How much retraining will developers need?”

Well, that depends. Groups migrating from .NET 5 will need minimal retraining, specifically related to the new features .NET 6 brings.

Teams coming from ASP.NET Web Forms or Windows Workflow Foundation will need to learn a lot like the ASP.NET MVC design pattern or the new workflow library.

Although .NET 8 has basic foundations similar to .NET Framework, .NET Core, or .NET 5, 6, or 7 it’s always important to allocate time to training as for any other new tool.

“How will my application deployments change?”

There is virtually no difference between how a .NET 5, 6 or 7 application is deployed compared to a .NET 8 application. The same can be said for a .NET Framework application; the only difference is that .NET 8 requires a module to be installed into IIS (but this dependency is expected to change in the future.)

Migrating from .NET Framework, you won’t see significant changes in the day-to-day of your pipelines, but your build will need to change. Most Framework code is compiled using MSBuild, but .NET 8 uses .NET CLI. It’s an important difference since not all MSBuild features and functionalities carry over into .NET CLI.

Plan Your .NET 8 Migration

Whether you’re coming from .NET Core, .NET Framework, or .NET 5, 6, or 7, it’s important to have a migration plan to the newer .NET releases. Deprecation can and will happen for every .NET release, so frequent upgrades will keep you and your team ready for anything.

Upgrading to .NET 8 is a big deal; Implementing best practices like Semantic versioning and choosing the best migration strategy for your package libraries will help you in the long term as .NET upgrades continue to release year over year.

Migrating can be a daunting task, and it’s more than just an upgrade. If you’re thinking about making the move, don’t forget to sign up for our free .NET 8 Migration guide today!

Crista Perlton

Crista Perlton

Navigation