static System.ConsoleColor?ToColor(BuildIssueType type) { if (type == BuildIssueType.Error || type == BuildIssueType.FatalError) { return(System.ConsoleColor.Red); } if (type == BuildIssueType.Warning) { return(System.ConsoleColor.Yellow); } return(null); }
public BuildIssueDetected( BuildIssueType type, string code, string message, Optional <SourceReference> source, Guid buildId) { BuildId = buildId; Severity = type; Code = code; Message = message; Source = source; }
public static Protocol.BuildIssueTypeData ToPluginBuildEventType(this BuildIssueType type) { switch (type) { case BuildIssueType.Error: return(Protocol.BuildIssueTypeData.Error); case BuildIssueType.FatalError: return(Protocol.BuildIssueTypeData.FatalError); case BuildIssueType.Message: return(Protocol.BuildIssueTypeData.Message); case BuildIssueType.Warning: return(Protocol.BuildIssueTypeData.Warning); default: return(Protocol.BuildIssueTypeData.Unknown); } }