Using MDK Hub (Recommended)
- Open MDK Hub.
- Click the "Check for Updates" button (or look for the update notification badge).
- If template updates are available, you'll see them listed.
- Click "Update Templates" to install the latest version.
The Hub will handle the update automatically and notify you when complete.
Using Command Line
Open a terminal (Terminal, Command Prompt, or PowerShell).
Check for available updates:
dotnet new update --check-onlyThis shows your current version and any available updates.
Update the templates:
- Update all templates:
dotnet new update - Update MDK templates specifically (as shown in the screenshot):
dotnet new install Mal.Mdk2.ScriptTemplates::[version]
- Update all templates:
The command line method updates the templates globally for all IDEs (Visual Studio and Rider have template UIs; VSCode users use dotnet new).