- Start by pressing your Windows or Start button, then type
terminal
and press enter (you can also useCommand Promptfor this instead of terminal if you prefer).
- To see if there are any update available, type:
dotnet new update --check-only
and press enter.
Here we can see that we have 2.0.4 installed of the Script template, but there's a 2.0.5 available.
- Update the template. You can either do the quick thing, simply typing
dotnet new update
and press enter, which will simply update every template you have to the newest version, or if you wish to update the template specifically, follow the instructions shown in the screenshot above, in this particular case
dotnet new install Mal.Mdk2.ScriptTemplates::2.0.5
to update the templates to version 2.0.5.