compile_plugin
Compile BepInEx plugin C# source files into a DLL using Roslyn, referencing the game's Managed and BepInEx core directories.
Instructions
Compile a BepInEx plugin C# source file using Roslyn.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_files": "<source_files>",
"managed_directory": "<managed_directory>",
"bepinex_core_directory": "<bepinex_core_directory>",
"output_path": "<output_path>"
},
"name": "compile_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | Output DLL path | |
| source_files | Yes | C# source file path(s), semicolon-separated | |
| assembly_name | No | Assembly name (optional) | |
| managed_directory | Yes | Path to game Managed directory | |
| bepinex_core_directory | Yes | Path to BepInEx/core directory |