Docs
RunMacro Documentation
Learn RunMacro from basics to advanced.
Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

Run a C# snippet in RunMacro
What it does
The Run C# Code command inserts and runs a C# snippet. RunMacro prefers dotnet-script/csi, falling back to the .NET Framework csc compiler. Printed output goes to the log.
When to use it
- Leverage .NET libraries for a special task.
- Handle complex logic in C#.
- Integrate a C# computation/formatting snippet.
Configuration steps
- Add a Code › Run C# Code command.
- Enter your C# snippet.
- Use
Console.WriteLine(...)to output to the log. Save.
Every option explained
Real example
Example: print a line
- Run C# Code with
Console.WriteLine("Hello");. - The line appears in the log.
Tips & common mistakes
You need dotnet-script, csi, or csc.exe available; otherwise the command reports it cannot run.
RunMacro