27 references to WorkspaceDiagnosticKind
AnalyzerRunner (1)
Program.cs (1)
82if (workspaceDiagnostic.Kind == WorkspaceDiagnosticKind.Failure)
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\DocumentDiagnostic.cs (1)
9public class DocumentDiagnostic(WorkspaceDiagnosticKind kind, string message, DocumentId documentId) : WorkspaceDiagnostic(kind, message)
Workspace\Solution\ProjectDiagnostic.cs (1)
9public class ProjectDiagnostic(WorkspaceDiagnosticKind kind, string message, ProjectId projectId) : WorkspaceDiagnostic(kind, message)
Workspace\WorkspaceDiagnostic.cs (4)
11public class WorkspaceDiagnostic(WorkspaceDiagnosticKind kind, string message) 13public WorkspaceDiagnosticKind Kind { get; } = kind; 22case WorkspaceDiagnosticKind.Failure: kindText = WorkspacesResources.Failure; break; 23case WorkspaceDiagnosticKind.Warning: kindText = WorkspacesResources.Warning; break;
Microsoft.CodeAnalysis.Workspaces.MSBuild (19)
MSBuild\DiagnosticReporter.cs (1)
36Report(new WorkspaceDiagnostic(WorkspaceDiagnosticKind.Failure, message));
MSBuild\DiagnosticReporterLoggerProvider.cs (3)
50var kind = logLevel == LogLevel.Warning ? WorkspaceDiagnosticKind.Warning : WorkspaceDiagnosticKind.Failure;
MSBuild\MSBuildProjectLoader.Worker.cs (2)
147WorkspaceDiagnosticKind.Warning, 490var diagnostic = new ProjectDiagnostic(WorkspaceDiagnosticKind.Warning, message, projectId);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
259WorkspaceDiagnosticKind.Warning, 301WorkspaceDiagnosticKind.Warning,
MSBuild\MSBuildWorkspace.cs (11)
343_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, 358_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId)); 375_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId)); 394_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, message, document.Id)); 412_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, message, document.Id)); 505_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id)); 533_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 537_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 541_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 577_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, message, projectId)); 613_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, message, projectId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
29AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind == WorkspaceDiagnosticKind.Failure).Select(d => d.Message));