🧪Your Mod
This page describes how to make your own custom modification using Visual Studio.
You're looking to create a mod for Nitrocid KS! That's great! Make sure that you have Visual Studio installed. Follow the steps to create your first mod.
Press
Create a new projecton Visual Studio homepage
Find
Class Libraryand double-click it
Write your mod name, like in our example,
MyFirstMod.
Make sure that
.NET 8.0is used. PressCreate.
Right-click on
Dependencies->Manage NuGet Packages, findKS, and install it.
Once the package is installed, go to the
Class1.cssource file
Write next to the class file
: IModand import the required namespaceby using KS.Modifications;. You should see errors indicating that you have to implement the methods.
After implementation, you should see:

Remove all calls to
NotImplementedExceptionand set the minimum supported API version. Currently, we're atv3.0.25.377.
Now, implement everything as you wish. Once you're done, follow the steps on how to create a strong name signing key and sign your mod. Then, click on the
Buildmenu and selectBuild Solution.
Once the solution is built, open the file explorer to the solution directory by right-clicking on the solution and selecting
Open Folder in File Explorer.
Navigate to the output directory and copy the
.dllfile toKSModsunder the%localappdata%/KSfolder.
Open Nitrocid KS to test your mod. Ensure that
modman listlists your mod.
Last updated