How to Upgrade .NET CLI Templates

October 14, 2020

I saw an awesome tweet on Twitter today:

Turns out, if you've upgraded to .NET Core 3.0, there is a special command just for this! Head over to the .NET Core Docs and look for these two options at the bottom:

Checking for Updates

dotnet new --update-check

Checks if there are updates available for the template packs that are currently installed. Available since .NET Core 3.0 SDK.

Applying Updates

dotnet new --update-apply

Checks if there are updates available for the template packs that are currently installed and installs them. Available since .NET Core 3.0 SDK.

Free ebook: 10 Tricks to Supercharge Your ASP.NET Core Applications

I'm hard at work on a new FREE ebook to help you supercharge your ASP.NET Core applications. Join the list today, and I'll send you the chapters as they're done!