Revision Difference
Setting_up_Rider#544716
<cat>Code.Intro</cat>
<title>Setting up Rider</title>
# Get Rider
Download or buy **Rider** here: [LINK](https://www.jetbrains.com/rider/)
# Solution
To get the `.sln` file, you need to start the game. Then your `s&box.sln` should be in the root directory.
*[Please note you will have to do this every time you add an addon to your game before you are able to edit.]*
1. Click Open
<upload src="a9bbd/8d95f3af00e11e6.png" size="26266" name="image.png" />
2. Go to your root directory
3. Select `s&box.sln`
<upload src="a9bbd/8d95f3e0f1a8ac0.png" size="46487" name="image.png" />
4. Here is your addon
<upload src="a9bbd/8d95f3bd8195124.png" size="19775" name="image.png" />
# Debugging
1. Run your `sbox-dev` and start your `game`
<upload src="a9bbd/8d95f3c6ffe3ade.png" size="69757" name="image.png" />
2. In Rider click `Run -> Attach to process...`
<upload src="a9bbd/8d95f3cae1b68ea.png" size="56587" name="image.png" />
3. Select S&Box process
<upload src="a9bbd/8d95f3d48ea210e.png" size="11372" name="image.png" />
4. Start debbuging! :3
<upload src="a9bbd/8d95f3d737dfa75.png" size="56749" name="image.png" />
<upload src="a9bbd/8d95f3d737dfa75.png" size="56749" name="image.png" />⤶
⤶
# Troubleshooting⤶
⤶
* If you are getting errors on everything, make sure you have the [.NET 5 SDK](https://dotnet.microsoft.com/download/dotnet/5.0) installed.⤶
⤶
* If you are getting random errors from stuff that should be code generated, [ensure you have Roslyn Analyzers enabled](https://www.jetbrains.com/help/rider/Settings_Roslyn_Analyzers.html).