S&box Wiki

Revision Difference

Setting_up_Rider#562973

<cat>Code.Intro</cat> <title>Setting up Rider</title> # Get Rider ⤶ You got two options to choose from: [buy Rider](https://www.jetbrains.com/rider/buy/#personal?billing=monthly) or start a [30-day evaluation](https://www.jetbrains.com/rider/download/) period.⤶ ⤶ Rider is now free for personal use as of October 24, 2024. It can be installed from the official website [here](https://www.jetbrains.com/rider/download/) # Set Rider as your Code Editor From within the s&box editor, click Edit > Editor Settings. In General, set the Code Editor to Rider. Now you can press Ctrl+P (or File > Open Solution) from within the editor to open your solution. # Debugging ## Attaching to the Procces In Rider click `Run -> Attach to process...` or see here <upload src="b3cb9/8db055d0967036b.png" size="19895" name="image.png" /> ### Selecting the S&Box process 1 View the available list of all debuggers 2 Narrow it down to .NET 3 Filter by sbox only 4 Attach - Done! <upload src="b3cb9/8db055d78a35bad.png" size="34944" name="image.png" /> ### Start debugging! <upload src="a9bbd/8d95f3d737dfa75.png" size="56749" name="image.png" /> # Troubleshooting * If you are getting errors on everything, make sure you have the [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) installed. * If you are getting errors on everything, make sure you have the [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.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). * If you are getting errors from the s&box libraries specifically the razor files, like this: <upload src="b53f5/8dc2e36e4f14f3b.png" size="17372" name="image.png" /> Then its try disabling rider's inspection for those folders. To do this go to: `Settings -> Inspection Settings` Scroll down to the bottom where it says "Elements to Skip" and enter: `"Libraries\Base Library\UI"` `"Libraries\Menu Addon"` <upload src="b53f5/8dc2e35cdeaf61d.png" size="32531" name="image.png" />