Guide to Build XBSX2
Prerequisites
Before you begin, you'll need:
- Visual Studio 2026 Community with UWP components installed. Follow the Visual Studio 2026 Setup Guide for detailed installation instructions.
- Git installed on your system from Git Downloads.
Step 1: Clone the XBSX2 Repository
- Open a Command Prompt or Terminal.
- Clone the
XBSX2repository by running the following command:git clone https://github.com/XboxEmulationHub/XBSX2.git
Step 2: Build Dependencies
- Navigate to the cloned
XBSX2repository folder. - Locate and run the dependency build script at
.github/workflows/scripts/uwp/build-dependencies.bat.- You can double-click the file in File Explorer to run it.
- The script will automatically build all required dependencies.
- Download
patches.zipfrom PCSX2's GitHub. We'll need it later.
Step 3: Open the Solution File
- Navigate to the root folder of the
XBSX2repository. - Open the
PCSX2_qt.slnfile in Visual Studio 2026.
Step 4: Set pcsx2-uwp as the Startup Project
- In the Solution Explorer window, locate the
pcsx2-uwpproject. - Right-click on the
pcsx2-uwpproject and select Set as Startup Project.
Step 5: Change Build Configuration to Release
-
At the top of Visual Studio, find the build configuration dropdown, which might be set to
Debugby default. -
Change the configuration from
DebugtoReleaseto optimize the build for performance. -
When you try to build, you will encounter an error such as:
Payload file C:\Users\Stern\Documents\XBSX2\pcsx2-uwp\resources\patches.zip' does not exist.noteTo fix this:
- Locate the
patches.zipfile that you downloaded earlier. - Move it to the following directory inside your cloned repository:
XBSX2\pcsx2-uwp\Resources. - After placing the file, try building the project again.
- Locate the
Step 6: Configure for Xbox Deployment
- Right-click the pcsx2-uwp project in the Solution Explorer.
- Select Properties from the context menu.
- In the Properties window, go to the Debugging section.
- Change the Target Device dropdown from
Local MachinetoRemote Machine. - In the Machine Name field, enter your Xbox's IP address (found in the Dev Home app under
Network). Example:192.168.1.1.
Step 7: Build the Project
- Right-click the solution in the Solution Explorer and select
Build Solutionor pressCtrl+Shift+B. - Visual Studio will begin building the project in
Releasemode for deployment to the Xbox.
Step 8: Deploy and Run on Xbox
- After building, Visual Studio will ask for a PIN. Enter the Visual Studio PIN from the Dev Home app on your Xbox (found in the Remote Access section).
- Once the deployment is complete, the application should automatically launch on your Xbox in Developer Mode.
The XBSX2 project is now deployed to your Xbox! If any issues arise during deployment, check the repository's Issues page on GitHub for troubleshooting tips or reach out to the community for support.