CompilationOptions.IncludeSourceCode
property · CompilationOptions · cAlgo.API Since 5.1
DesktopCLICloud
Gets / Inits inclusion of source code in output algo file (Default is False).
Definition
public bool IncludeSourceCode {get; set;}
compilationOptions.IncludeSourceCode: bool
Returns bool
Examples
var options = new CompilationOptions { IncludeSourceCode = true };
var result = Compiler.Compile(@"Sample cBot\Sample cBot.csproj", options);
Print("Compiled with source code: {0}", result.Succeeded);
options = CompilationOptions()
options.IncludeSourceCode = True
result = api.Compiler.Compile(r"Sample cBot\Sample cBot.csproj", options)
api.Print(f"Compiled with source code: {result.Succeeded}")