Initial Setup
Modding might sound complicated, but it’s much easier if you start with the right mindset and a simple mod.
Install the Requirements
Section titled “Install the Requirements”Before you can start modding Resonite, you’ll need to install two essential tools:
- .NET SDK 9.0 – This is needed so you can compile C# code.
- IDE – This is where you’ll write and build your code. Choosing one can depend on your preferences and system.
- Visual Studio Code (A lightweight, fast, and highly customizable editor with a wide range of extensions.)
- Visual Studio (A powerful, feature-rich IDE widely used for C# and .NET development.)
- Rider (A full-featured, IDE optimized for C# and .NET development.)
Now that you have .NET and an IDE, we can move on to creating your first mod.
Installing BepInEx
Section titled “Installing BepInEx”You’ll need BepInEx (via BepisLoader) installed to develop mods. Follow our installation guide to set it up using either:
- Mod Manager (recommended) - Easy automatic installation
- Manual installation - For custom configurations
Installing a Decompiler
Section titled “Installing a Decompiler”A decompiler allows you to inspect the game’s internal code. This helps you discover useful classes and methods that can be modified using Harmony.
You only need one decompiler. Recommended options:
- ILSpy (best decompilation)
- ILSpyCmd (CLI option)
- ilspy-vscode (Visual Studio Code extension)
- dnSpy
- dotPeek
You’re now ready to move on:
Creating a Project Create a new C# BepInEx 6 project based on a template made for Resonite modding