How to Upgrade .NET CLI Templates

I saw an awesome tweet on Twitter today:

https://twitter.com/buhakmeh/status/1316360387886014464

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.

Kevin Griffin - Microsoft MVP and .NET Expert

About Kevin

Kevin Griffin has been running production .NET applications and teaching developers for over two decades. A 16-time Microsoft MVP specializing in ASP.NET Core and Azure, Kevin brings real-world experience from his own SaaS products alongside his consulting work at Swift Kick. He's hosted the Hampton Roads .NET User Group since 2009 and founded RevolutionVA, the nonprofit behind Hampton Roads DevFest. Kevin's talks blend hard-won lessons from production systems with practical advice you can use Monday morning.