Skip to content

An automation script for Microsoft's tool for upgrading from .NET Framework to .NET 6

License

Notifications You must be signed in to change notification settings

bennetrr/dotnet-autoupgrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet-autoupgrader

This script completely automates the process of upgrading a .NET Framework project to .NET 6 using Microsoft's official upgrade tool.

Mor information about the upgrade process can be found here.

Usage

dotnet-autoupgrader.py <solution-path> [--no-backup] [-y] [-h | --help]
  <solution-path>    The path to a solution (.sln) file or a directory containing one or more solution files.
                     If a directory with multiple solution files is given, all of them will be upgraded.
  [--no-backup]      If the single projects should be backed up before upgrading.
  [-y]               Don't ask for confirmation before upgrading.
  [-h] [--help]      Show this help message.

Requirements

What this does

Microsoft offers a tool to upgrade existing .NET Framework projects to .NET 6. However, as the tool asks after every step twice for confirmation, it's pretty annoying to upgrade, especially if you have multiple projects.

This script addresses the issue and confirms the steps automatically. It also can process multiple projects in one run, without the need to restart the tool over and over again.