S&box Wiki

Revision Difference

Setting_up_Visual_Studio#546083

<cat>Code.Intro</cat> <title>Setting up Visual Studio</title> <note>If you already have Visual Studio installed, make sure you have the latest version of Visual Studido 2022.</note> <note>If you already have Visual Studio installed, make sure you have the latest version of Visual Studio 2022.</note> # Downloading and installing Visual Studio 2022 [Download Visual Studio 2022 Community](https://visualstudio.microsoft.com/downloads/) and install with the workload .NET desktop development. If you need additional guidance refer to the [official guide](https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio?view=vs-2022). # Generating your solution A solution file is automatically generated when you launch the game, you can find this solution next to your game directory. ``` C:/Steam/steamapps/common/sbox/s&box.sln ``` <upload src="a5727/8d9398753b3da50.png" size="8056" name="image.png" /> This is a solution file you can open in Visual Studio, this solution contains all your addons as projects. <upload src="a5727/8d939875bdc9091.png" size="10341" name="image.png" /> Each time you <page text="create a new addon">Making_Gamemode</page> you will need to restart your game to re-generate the solution. # 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 installed. # Community Extensions * [s&box Tools](https://marketplace.visualstudio.com/items?itemName=rtm516.sboxtools) (Adds some of the features in the external console to the IDE) # Debugging For info on debugging check out the <page>Debugging</page> page.