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)
143private DiagnosticReportingMode GetReportingModeForUnrecognizedProjects() 145? DiagnosticReportingMode.Log 146: DiagnosticReportingMode.Throw; 170if (!_pathResolver.TryGetAbsoluteSolutionPath(solutionFilePath, baseDirectory: Directory.GetCurrentDirectory(), DiagnosticReportingMode.Throw, out var absoluteSolutionPath)) 189var reportingMode = GetReportingModeForUnrecognizedProjects(); 271var 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)
245DiagnosticReportingMode.Log,
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
338=> _projectFileExtensionRegistry.TryGetLanguageNameFromProjectPath(projectPath, DiagnosticReportingMode.Ignore, out _);
MSBuild\MSBuildWorkspace.cs (1)
349if (_projectFileExtensionRegistry.TryGetLanguageNameFromProjectPath(projectPath, DiagnosticReportingMode.Log, out var languageName))
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\ProjectFileExtensionRegistry.cs (1)
45public bool TryGetLanguageNameFromProjectPath(string? projectFilePath, DiagnosticReportingMode mode, [NotNullWhen(true)] out string? languageName)