---
id: "P:cAlgo.API.Plugin.Compiler"
kind: "property"
type: "T:cAlgo.API.Plugin"
url: "https://help.ctrader.com/ctrader-algo/references/General/Plugin/Compiler/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Plugin.Compiler

Member of [Plugin](https://help.ctrader.com/ctrader-algo/references/General/Plugin/index.md).

## Compiler

Provides access to algo compiler.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public Compiler Compiler {get;}
```

Python:

```python
api.Compiler: Compiler
```

### Returns

`Compiler` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var result = Compiler.Compile(@"C:\Users\Me\Documents\cAlgo\Sources\Robots\MyBot\MyBot.csproj");
Print("Compilation succeeded: {0}", result.Succeeded);
foreach (var error in result.Errors)
    Print(error);
```

Python:

```python
result = api.Compiler.Compile(r"C:\Users\Me\Documents\cAlgo\Sources\Robots\MyBot\MyBot.csproj")
api.Print(f"Compilation succeeded: {result.Succeeded}")
for error in result.Errors:
    api.Print(error)
```

