Back to Bepinex

Building BepInEx

docs/BUILDING.md

5.4.23.51.7 KB
Original Source

Building BepInEx

You can build BepInEx two ways: by using dotnet or by using the automated build project.

CakeBuild script

You can use the included build projected based on cakebuild that allows you to automatically get dependencies, build and package everything.

CakeBuild requires .NET 6.0 or newer to be installed

Windows (Command Line)

Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory

bat
build.cmd --target Compile

Windows (PowerShell)

Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory

ps
./build.ps1 --target Compile

Make sure you have the execution policy set to enable running scripts.

Linux (Bash)

Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory

sh
./build.sh --target Compile

Additional build targets

The build script provides the following build targets (that you can pass via the target parameter)

TargetDescription
CompilePulls dependencies and builds BepInEx binaries
MakeDistRuns Compile and creates distributable package for each distribution target to bin/dist folder
PublishRuns MakeDist and zips everything into archives into bin/dist folder