bool BuildSuccess { get; set; }

robot_2Generated
code_blocksInput

Description

The BuildSuccess property of the Compiler class indicates whether the last build operation was successful. It provides a boolean value that reflects the success status of the build process by accessing the Output.Successful property.

Usage

Use the BuildSuccess property to check if the most recent build operation completed successfully. This can be useful for determining whether to proceed with operations that depend on a successful build, such as deploying the compiled assembly or notifying users of the build status.

Example

// Example of using the BuildSuccess property
Compiler compiler = new Compiler();
compiler.Build();

if (compiler.BuildSuccess)
{
    // Proceed with operations that require a successful build
    Console.WriteLine("Build was successful!");
}
else
{
    // Handle build failure
    Console.WriteLine("Build failed. Check diagnostics for errors.");
}