- Open
MinecraftConsoles.slnin Visual Studio 2022. - Set Startup Project:
- Client:
Minecraft.Client - Dedicated server:
Minecraft.Server
- Client:
- Select configuration:
Debug(recommended), orRelease
- Select platform:
Windows64. - Build and run:
Build > Build Solution(orCtrl+Shift+B)- Start debugging with
F5.
- Default debugger arguments for
Minecraft.Server:-port 25565 -bind 0.0.0.0 -name DedicatedServer
- You can override arguments in:
Project Properties > Debugging > Command Arguments
Minecraft.Serverpost-build copies only the dedicated-server asset set:Common/Media/MediaWindows64.arcCommon/resWindows64/GameHDD
Configure (use your VS Community instance explicitly):
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_INSTANCE="C:/Program Files/Microsoft Visual Studio/2022/Community"Build Debug:
cmake --build build --config Debug --target MinecraftClientBuild Release:
cmake --build build --config Release --target MinecraftClientBuild Dedicated Server (Debug):
cmake --build build --config Debug --target MinecraftServerBuild Dedicated Server (Release):
cmake --build build --config Release --target MinecraftServerRun executable:
cd .\build\Debug
.\MinecraftClient.exeRun dedicated server:
cd .\build\Debug
.\Minecraft.Server.exe -port 25565 -bind 0.0.0.0 -name DedicatedServerNotes:
- The CMake build is Windows-only and x64-only.
- Contributors on macOS or Linux need a Windows machine or VM to build the project. Running the game via Wine is separate from having a supported build environment.
- Post-build asset copy is automatic for
MinecraftClientin CMake (Debug and Release variants). - The game relies on relative paths (for example
Common\Media\...), so launching from the output directory is required.