Scott Hanselman's Blog

Upgrading a 20 year old University Project to .NET 6 with dotnet-upgrade-assistant

In 2001, the author created a Tiny Virtual Operating System for a college course, initially in C# and later ported to VB.NET on early .NET frameworks. Years later, the project was migrated to GitHub and updated to .NET Core 2.0, enabling it to run on various platforms like Linux, Docker, and Raspberry Pi. Recently, the author decided to upgrade the 20-year-old application to .NET 6 using the .NET Upgrade Assistant. The upgrade process was interactive and surprisingly smooth, with the project building successfully on the first attempt. However, some outdated version numbers in the project file required manual adjustment. Using the "dotnet outdated" tool, the author confirmed the availability of newer packages and upgraded them accordingly. The execution command was modernized to a simpler format. With .NET 6, the final application was packaged as a self-contained, cross-platform executable, a mere 11 MB in size, highlighting the significant progress in .NET development over the years.
favicon
feeds.hanselman.com
feeds.hanselman.com