docs/BUILDING.md
You can build BepInEx two ways: by using dotnet or by using the automated build project.
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
Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory
build.cmd --target Compile
Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory
./build.ps1 --target Compile
Make sure you have the execution policy set to enable running scripts.
Clone this repository via git clone https://github.com/BepInEx/BepInEx.git.
After that, run in the repository directory
./build.sh --target Compile
The build script provides the following build targets (that you can pass via the target parameter)
| Target | Description |
|---|---|
Compile | Pulls dependencies and builds BepInEx binaries |
MakeDist | Runs Compile and creates distributable package for each distribution target to bin/dist folder |
Publish | Runs MakeDist and zips everything into archives into bin/dist folder |