AutoUpgrade is a .Net Global tool that will automatically update your Project File(s), DockerFile(s) and .env file(s) with the changes required for migrating to .Net 2.1. (This currently only supports upgrades from 2.0)
Because it's a .Net global tool, it works on Mac and Windows.
You'll need .Net Core 2.1 SDK installed locally. Download at www.dot.net
dotnet tool install autoupgrade -g --add-source https://nuget.meer-spacestation.co.uk/nuget
you can leave out the --add-source option if you alread have the nuget server in your nuget feed.
As this is a global tool, you can run it from anywhere, supplying the full path the folder containing the solution you wish to upgrade:
autoupgrade upgrade [PathToDirectory]
Alternatively, is you navigate to the desired folder, you can omit the Path and it will default to your current location.
Currently, AutoUpgrade only works with migration from 2.0 to 2.1, but the plan is to keep updating for each new version of .Net Core, (possibly even with preview releases). Updates will be applied incrementally, so upgrading from 2.0 to 2.2 AutoUpgrader will apply updates for 2.1, then 2.2, all with a single command.
I'd also like to extend the behaviour to automatically build & test your upgraded application, and commit to git supplying an optional Jira ticket number to support smart commits.