Back to case studies

Case study

.NET Framework to .NET 8 Upgrade

Led the move of a business-critical desktop application from .NET Framework 4.7.1 to .NET 8, fixing runtime and dependency breaks without disrupting the workflows people relied on.

  • C#
  • .NET 8
  • .NET Framework
  • Upgrade
  • Compatibility
  • Security

Problem

The application was still central to the business, but it ran on .NET Framework 4.7.1 with old dependencies and encryption code built on APIs that had become obsolete. Staying put made every change harder, closed off future upgrades, and left the security-sensitive code on those obsolete APIs.

Approach

I did the upgrade in stages. Before changing a target framework, I sorted every dependency: upgrade it, replace it with something supported, remove it, or isolate it for now. That list became the plan, and it answered "how far along are we?" better than a percentage. I replaced the obsolete cryptography with current APIs as its own piece of work, with tests aimed at exactly that path, and fixed runtime, package and API breaks as the app moved to .NET 8. Each stage had to pass the same checks before it went further: it builds and starts on .NET 8, the main workflows behave as before, data reads and writes the same way, the security-sensitive paths still work, and we know how to roll it back.

Architecture

The goal was to make the app less fragile on a new runtime while keeping its behavior the same. I moved the target frameworks, tightened dependency boundaries and updated the security-sensitive code without changing how the business workflows behaved. Where an old component could not move forward cleanly, I isolated or replaced it so the rest of the app could keep moving.

Tradeoffs

A rewrite would have put a system people depended on at risk, and a version bump alone would not have fixed the obsolete encryption or the old dependencies. So I changed things aggressively where the stack was unsafe or unsupported, and left the rest alone so users could keep trusting how it behaved. That meant deciding piece by piece what to keep, what to replace, and where a little temporary complexity was worth it.

Outcome

The application now runs on .NET 8 with supported dependencies, current encryption and an easier road for future upgrades. The team stopped working around legacy blockers and went back to shipping changes.

Further reading