You can build BepInEx two ways: by using MSBuild-compatible IDE or the CakeBuild script.
You can use the included cakebuild script that allows you to automatically get dependencies, build and package everything.
Make sure you have either MSBuild (via Visual Studio Installer) or Mono installed.
Clone this repository via git clone https://github.com/BepInEx/BepInEx.git
.
After that, run in the repository directory
build.bat -target=Build
Clone this repository via git clone https://github.com/BepInEx/BepInEx.git
.
After that, run in the repository directory
./build.ps1 -target=Build
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=Build
The build script provides the following build targets (that you can pass via the target
parameter)
Target | Description |
---|---|
Build |
Pulls dependencies and builds BepInEx |
MakeDist |
Runs Build and creates distributable packages into bin/dist folder |
Pack |
Runs MakeDist and zips everything into archives into bin/dist folder |
Download and IDE (for example Visual Studio), open the solution file and build it.