Before reporting problems, ensure you have followed every step!
This workflow is mainly for working on usermode applications.
For this example we are going to see how to build rapps from Visual Studio 2019.
- Download the Visual studio 2019 community edition.
- Ensure you have started visual studio at least once, and you are able to create a working c++ project.
- To validate this, choose Create a new project, choose Console App, and use all default options
- Install the latest RosBE (Preferrably in C:\RosBE\)
- Get the source
- See for example ReactOS_Git_For_Dummies#Cloning_the_repository
Creating the Solution
- Open the x86 Native Tools Command Prompt for VS 2019 Community Edition
- If you did not add the BIN folder to the PATH during RosBE setup, add it now manually:
- Create a folder where you want your solution to be created, and navigate towards that:
- Validate that RosBE is correctly setup:
- The result should be: cmake version 3.17.1-ReactOS
- Generate the solution (the source directory is R:\src\wip for this example):
R:\src\wip\configure.cmd VSSolution -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1
- The switch -DENABLE_ROSTESTS=1 enables the testsuite
- The switch -DENABLE_ROSAPPS=1 enables extra applications to be included that are also present on a release
- If all went well, the message Configure script complete! You can now use msbuild or open REACTOS.sln. appears.
- There should now be a REACTOS.sln in R:\build\wip\devenv_2019 (Which contains ALL projects!)
- Since rapps has the cmake [project(rapps)] macro, there will also be a smaller solution just for rapps: R:\build\wip\devenv_2019\base\applications\rapps\rapps.sln
- Open this solution, and expand base\rapplications\rapps
- Right click rapps, choose Set as Startup Project
- Press Debug->Start Debugging in the menu, or the hotkey that is displayed behind it (F5 for me)
- Have fun!