Table of Contents

Build Stride without Visual Studio

  1. Install Visual Studio Build Tools with the same prerequisites listed here
  2. Add MSBuild's directory to your system's PATH (ex: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin)
  3. Open a command prompt, point it to a directory and clone Stride to it: git lfs clone https://github.com/stride3d/stride.git
  4. Navigate to /Build with the command prompt, input msbuild /t:Restore Stride.sln then compile.bat

Build Stride with Rider

While the engine's build system is almost ready to run from Rider there are still a couple of kinks to iron out before we're there, in the mean time here's a short tutorial to help users of this IDE out.

  • As mentioned above, building directly from Rider is not possible yet, but we can invoke the command line to do it for us ...

  • Open Stride.sln with Rider.

  • Select the configuration dropdown, go to the bottom of the dropdown and select Edit Configurations ...

    image

  • Press the + on the upper left of this new window, then .NET Executable

image

  • Give it a name, something like Compile then open Editor
  • Fill the Exe path with the game studio's, if you don't have the game studio check that step #1 was successful

image

  • Remove any of the Before Launch steps
  • Add a new Run External tool step

image

  • Set Program to Compile.bat

image

  • Press OK, press OK, press Apply, press OK and select this new configuration in the configuration dropdown

image

Hotreload

To hotreload your changes you either have to pause and continue the program or press on the hotreload button at the top of the text editor when/if it shows up.

image