With terminal

Make sure you have installed DotNet 9.

Start menu showing Terminal and Command Prompt highlighted

image

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.

Start menu showing Terminal and Command Prompt highlighted

image

Note

Some people get this message:

image

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:

image

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.

new-solution

Now you should have two templates added, Programmable Block Script (MDK2) and Programmable Block Mixin (MDK2)

templates

With JetBrains Interface

  1. Download the nuget package Mal.Mdk2.ScriptTemplates

download-nuget-package

  1. Open JetBrain's Rider
  2. Click the new Solution button.

new-solution

  1. Click "Manage Templates..." button.

manage-templates

  1. Click "Install Template..."

install template

  1. Navigate to where you downloaded the nuget package, select it and click open.

select-nuget

  1. Click "close"

close

Now you should have two templates added, Programmable Block Script (MDK2) and Programmable Block Mixin (MDK2)

templates

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.