CompilationOptions.OutputAlgoFilePath
property · CompilationOptions · cAlgo.API Since 5.1
DesktopCLICloud
Gets / Inits output algo file path, if not provided default platform algo path will be used.
Definition
public string OutputAlgoFilePath {get; set;}
compilationOptions.OutputAlgoFilePath: str
Returns string
Examples
var options = new CompilationOptions { OutputAlgoFilePath = @"C:\Algos\Sample cBot.algo" };
var result = Compiler.Compile(@"Sample cBot\Sample cBot.csproj", options);
if (result.Succeeded)
Print("Algo file saved to {0}", options.OutputAlgoFilePath);
options = CompilationOptions()
options.OutputAlgoFilePath = r"C:\Algos\Sample cBot.algo"
result = api.Compiler.Compile(r"Sample cBot\Sample cBot.csproj", options)
if result.Succeeded:
api.Print(f"Algo file saved to {options.OutputAlgoFilePath}")