~/openengine
$ cat docs/guides/windows.md
# building on Windows

Windows is the primary development platform for OpenEngine.

Prerequisites

  • Visual Studio 2019 or 2022 with the Desktop development with C++ workload
  • .NET 9.0 SDK
  • Git

Generate Build Files

bash
# Visual Studio 2022 (recommended)
cmake -B build -G "Visual Studio 17 2022" -A x64

# Visual Studio 2019
cmake -B build -G "Visual Studio 16 2019" -A x64

This generates a .sln file in the build/ directory. You can open it in Visual Studio or build from the command line.

Build

bash
cmake --build build --config Debug
cmake --build build --config Release

Run

bash
.\build\bin\Debug\OpenEngine.exe

The executable runs integration tests then enters the main loop.

Batch Building

Use the provided scripts:

bash
# Command Prompt
build.bat

# PowerShell
.\build.ps1

CI Build

bash
cmake -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release --parallel

Next Steps

enesfrar