S&box Wiki

Setting up Visual Studio

Downloading and installing Visual Studio 2022

Download Visual Studio 2022 Community and install with the workload .NET desktop development, as well as ASP.NET workload for razor support.

If you need additional guidance refer to the official guide.

S&box now uses .NET 9. Any other version will not work. If you are having issues, make sure your Visual Studio is updated and the .NET 9 SDK is installed.

Opening your projects

The best way to get started is to press Open Solution from the editor or ( ctrl + p ).

image.png
image.png

Your solution contains all the code from your game, tools, editor etc.

Troubleshooting

  • If you get a lot of errors from dependencies not being able to load, make sure you have the latest version of Visual Studio 2022 installed with .NET 9.

Missing .NET 9⤶

Are you missing a .NET 9 SDK installation? Sometimes Visual Studio refuses to reference the .NET 7 SDK unless you have the preview channel enabled.⤶

Still unable to reference .NET 9? Please change your Visual Studio 2022 Instance to the Preview Channel by following the guide below.

image.png
image.png

You should now see your .NET 9 installation when selecting an SDK.

image.png

Debugging

For info on debugging check out the Debugging page.