28 references to DiagnosticReportingMode
Microsoft.CodeAnalysis.Workspaces.MSBuild (28)
MSBuild\DiagnosticReporter.cs (6)
23
public void Report(
DiagnosticReportingMode
mode, string message, Func<string, Exception>? createException = null)
27
case
DiagnosticReportingMode
.Throw:
35
case
DiagnosticReportingMode
.Log:
39
case
DiagnosticReportingMode
.Ignore:
43
throw new ArgumentException(string.Format(WorkspaceMSBuildResources.Invalid_0_specified_1, nameof(
DiagnosticReportingMode
), nameof(mode)), nameof(mode));
61
Report(
DiagnosticReportingMode
.Log, GetMSBuildFailedMessage(logItem.ProjectFilePath, logItem.ToString()));
MSBuild\DiagnosticReportingOptions.cs (8)
9
public
DiagnosticReportingMode
OnPathFailure { get; }
10
public
DiagnosticReportingMode
OnLoaderFailure { get; }
13
DiagnosticReportingMode
onPathFailure,
14
DiagnosticReportingMode
onLoaderFailure)
21
= new DiagnosticReportingOptions(
DiagnosticReportingMode
.Ignore,
DiagnosticReportingMode
.Ignore);
24
= new DiagnosticReportingOptions(
DiagnosticReportingMode
.Throw,
DiagnosticReportingMode
.Throw);
MSBuild\MSBuildProjectLoader.cs (6)
143
private
DiagnosticReportingMode
GetReportingModeForUnrecognizedProjects()
145
?
DiagnosticReportingMode
.Log
146
:
DiagnosticReportingMode
.Throw;
170
if (!_pathResolver.TryGetAbsoluteSolutionPath(solutionFilePath, baseDirectory: Directory.GetCurrentDirectory(),
DiagnosticReportingMode
.Throw, out var absoluteSolutionPath))
189
var
reportingMode = GetReportingModeForUnrecognizedProjects();
271
var
reportingMode = GetReportingModeForUnrecognizedProjects();
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (2)
38
if (!pathResolver.TryGetAbsoluteSolutionPath(solutionPath, baseDirectory,
DiagnosticReportingMode
.Throw, out solutionFilename))
67
if (pathResolver.TryGetAbsoluteProjectPath(projectPath, baseDirectory,
DiagnosticReportingMode
.Throw, out var absoluteProjectPath))
MSBuild\MSBuildProjectLoader.Worker.cs (1)
245
DiagnosticReportingMode
.Log,
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
338
=> _projectFileExtensionRegistry.TryGetLanguageNameFromProjectPath(projectPath,
DiagnosticReportingMode
.Ignore, out _);
MSBuild\MSBuildWorkspace.cs (1)
349
if (_projectFileExtensionRegistry.TryGetLanguageNameFromProjectPath(projectPath,
DiagnosticReportingMode
.Log, out var languageName))
MSBuild\PathResolver.cs (2)
21
public bool TryGetAbsoluteSolutionPath(string path, string baseDirectory,
DiagnosticReportingMode
reportingMode, [NotNullWhen(true)] out string? absolutePath)
46
public bool TryGetAbsoluteProjectPath(string path, string baseDirectory,
DiagnosticReportingMode
reportingMode, [NotNullWhen(true)] out string? absolutePath)
MSBuild\ProjectFileExtensionRegistry.cs (1)
45
public bool TryGetLanguageNameFromProjectPath(string? projectFilePath,
DiagnosticReportingMode
mode, [NotNullWhen(true)] out string? languageName)