S&box Wiki

Setting up Visual Studio

Setting up Visual Studio

Downloading and installing Visual Studio

  1. Download Visual Studio 2019 Community here
  2. Run the installer
  3. Select .NET desktop development.
    3a. Optionally you can untick unwanted features on the right side. The ones suggested in the picture below should be sufficient.

After the installer has finished, you are now ready to work with S&box using Visual Studio!

If you're new to C#, check out the C# Learning Resources to find resources that work for you.

For information on how to create your first gamemode, follow the tutorial on making a gamemode.

Generating your solution

Every time you create a new addon in your addons folder, you will need to run the GenerateProjects.bat script.

This creates an Addons.sln solution file, you can simply open this file in Visual Studio and begin coding.


Visual Studio is an IDE with a lot of pre-installed tools, however if you find that you need something that it doesn't include, you can browse the extension manager.

  1. Click on Extensions on the toolbar and select Manage Extensions
  1. The Extension Manager should now appear and you can search for extensions. If you want more information about a certain extension, click on the blue More Information text, and your browser will open a tab to the extension's page.

Community Extensions

  • s&box Tools (Adds some of the features in the external console to the IDE)


For info on debugging check out the Debugging page.

Special Pages



Render Time: 11ms

DB GetPage 2
Generate Html 0
SaveChanges (1) 6
Render Body 0
Render Sidebar 0