Description
The Compiler
property of the CompilerOutput
class provides information about the compiler that produced the current build. This property is useful for understanding the context in which the build was generated, such as the specific compiler version or type used.
Usage
To access the Compiler
property, you need an instance of the CompilerOutput
class. This property is read-only and returns an instance of the Sandbox.Compiler
type, which contains details about the compiler.
Example
// Assuming you have a CompilerOutput instance named 'compilerOutput'
Sandbox.Compiler compilerInfo = compilerOutput.Compiler;
// You can now use 'compilerInfo' to access details about the compiler
// For example, you might want to log or display the compiler information
string compilerDetails = compilerInfo.ToString();
// Use 'compilerDetails' as needed, e.g., display in UI or log file