Skip to content

CompilationOptions

class cAlgo.API Since 5.1

DesktopCLICloud

Compilation options container.

Definition

public class CompilationOptions

Namespace: cAlgo.API · Group: Compilation

Examples

var options = new CompilationOptions { IncludeSourceCode = true, OutputAlgoFilePath = @"C:\Algos\Sample cBot.algo" };
var result = Compiler.Compile(@"Sample cBot\Sample cBot.csproj", options);
Print("Compilation succeeded: {0}", result.Succeeded);
options = CompilationOptions()
options.IncludeSourceCode = True
options.OutputAlgoFilePath = r"C:\Algos\Sample cBot.algo"
result = api.Compiler.Compile(r"Sample cBot\Sample cBot.csproj", options)
api.Print(f"Compilation succeeded: {result.Succeeded}")

Constructors

Name Description
CompilationOptionsDesktopCLICloud Creates compilation options.

Properties

Name Description
IncludeSourceCodeDesktopCLICloudbool Gets / Inits inclusion of source code in output algo file (Default is False).
OutputAlgoFilePathDesktopCLICloudstring Gets / Inits output algo file path, if not provided default platform algo path will be used.

See also