With terminal
Make sure you have installed DotNet 9.
- Make sure to close Rider before this step.
- Open a Terminal window by pressing the Windows/Start button and typing
Terminal(orCommand Promptif you prefer)
- Type
dotnet --list-sdksand pressenter.
If you do not have any .NET 9 versions, you need to go to https://dotnet.microsoft.com/en-us/download.
Install the DotNet New template package.
- Make sure to close Visual Studio before this step.
- Open a Terminal window by pressing the Windows/Start button and typing
Terminal(orCommand Promptif you prefer)
- Type
dotnet new install Mal.Mdk2.ScriptTemplatesand pressenter
Note
Some people get this message:
This usually means that for whatever reason, the nuget primary package source has not been added to your nuget package manager. You can
double check this by typing dotnet nuget list source. If everything is as it should, it should at least list an entry with the official
nuget source:
If it doesn't, you can add it by typing in dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "NuGet.org".
After this, you can try adding the template package again.
Note
Some people were not able to run the install command before restarting their computer after installing DotNet 9 or Visual Studio.
Open JetBrain's Rider Click the new Solution button.
Now you should have two templates added, Programmable Block Script (MDK2) and Programmable Block Mixin (MDK2)
With JetBrains Interface
- Download the nuget package Mal.Mdk2.ScriptTemplates

- Open JetBrain's Rider
- Click the new Solution button.
- Click "Manage Templates..." button.
- Click "Install Template..."

- Navigate to where you downloaded the nuget package, select it and click open.
- Click "close"
Now you should have two templates added, Programmable Block Script (MDK2) and Programmable Block Mixin (MDK2)
Note
Make sure you select the Script project and not the Mixin project when starting your new script.
A big thank you to @Drew-Chase who wrote up the tutorial for Rider for me.