28 references to DiagnosticReportingMode
Microsoft.CodeAnalysis.Workspaces.MSBuild (28)
MSBuild\DiagnosticReporter.cs (6)
23public void Report(DiagnosticReportingMode mode, string message, Func<string, Exception>? createException = null) 27case DiagnosticReportingMode.Throw: 35case DiagnosticReportingMode.Log: 39case DiagnosticReportingMode.Ignore: 43throw new ArgumentException(string.Format(WorkspaceMSBuildResources.Invalid_0_specified_1, nameof(DiagnosticReportingMode), nameof(mode)), nameof(mode)); 61Report(DiagnosticReportingMode.Log, GetMSBuildFailedMessage(logItem.ProjectFilePath, logItem.ToString()));
MSBuild\DiagnosticReportingOptions.cs (8)
9public DiagnosticReportingMode OnPathFailure { get; } 10public DiagnosticReportingMode OnLoaderFailure { get; } 13DiagnosticReportingMode onPathFailure, 14DiagnosticReportingMode onLoaderFailure) 21= new DiagnosticReportingOptions(DiagnosticReportingMode.Ignore, DiagnosticReportingMode.Ignore); 24= new DiagnosticReportingOptions(DiagnosticReportingMode.Throw, DiagnosticReportingMode.Throw);
MSBuild\MSBuildProjectLoader.cs (6)
130private DiagnosticReportingMode GetReportingModeForUnrecognizedProjects() 132? DiagnosticReportingMode.Log 133: DiagnosticReportingMode.Throw; 155if (!_pathResolver.TryGetAbsoluteSolutionPath(solutionFilePath, baseDirectory: Directory.GetCurrentDirectory(), DiagnosticReportingMode.Throw, out var absoluteSolutionPath)) 174var reportingMode = GetReportingModeForUnrecognizedProjects(); 253var reportingMode = GetReportingModeForUnrecognizedProjects();
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (2)
38if (!pathResolver.TryGetAbsoluteSolutionPath(solutionPath, baseDirectory, DiagnosticReportingMode.Throw, out solutionFilename)) 67if (pathResolver.TryGetAbsoluteProjectPath(projectPath, baseDirectory, DiagnosticReportingMode.Throw, out var absoluteProjectPath))
MSBuild\MSBuildProjectLoader.Worker.cs (1)
252DiagnosticReportingMode.Log,
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
329=> _projectFileLoaderRegistry.TryGetLoaderFromProjectPath(projectPath, DiagnosticReportingMode.Ignore, out _);
MSBuild\PathResolver.cs (2)
21public bool TryGetAbsoluteSolutionPath(string path, string baseDirectory, DiagnosticReportingMode reportingMode, [NotNullWhen(true)] out string? absolutePath) 46public bool TryGetAbsoluteProjectPath(string path, string baseDirectory, DiagnosticReportingMode reportingMode, [NotNullWhen(true)] out string? absolutePath)
MSBuild\ProjectFile\ProjectFileLoaderRegistry.cs (2)
42return TryGetLoaderFromProjectPath(projectFilePath, DiagnosticReportingMode.Ignore, out loader); 45public bool TryGetLoaderFromProjectPath(string? projectFilePath, DiagnosticReportingMode mode, [NotNullWhen(true)] out IProjectFileLoader? loader)