198 references to DiagnosticSubcategory
Microsoft.Build (193)
BackEnd\BuildManager\BuildManager.cs (3)
1266BuildEventContext.Invalid, DiagnosticSubcategory.None, warningCode, helpKeyword, ElementLocation.Empty, message); 3674DiagnosticSubcategory.None, 3862DiagnosticSubcategory.None,
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
46loggingService.LogWarning(BuildEventContext.Invalid, DiagnosticSubcategory.None, ElementLocation.Empty, "DotnetHostPathIsDirectory", dotnetHostPath);
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (2)
169taskLoggingContext.LogWarning(DiagnosticSubcategory.None, taskLocation, 183taskLoggingContext.LogWarning(DiagnosticSubcategory.None, taskLocation,
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1580DiagnosticSubcategory.None,
BackEnd\Components\Logging\ILoggingService.cs (8)
423/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 427void LogError(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs); 433/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 438void LogErrorFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string errorCode, string helpKeyword, IElementLocation location, string message); 489/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 493void LogWarning(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs); 499/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 504void LogWarningFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message);
BackEnd\Components\Logging\LoggingContext.cs (9)
202/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 206internal void LogErrorWithSubcategory(DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 216/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 221internal void LogErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 256_loggingService.LogWarning(_eventContext, DiagnosticSubcategory.None, ElementLocation.Empty, messageResourceName, messageArgs); 262/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 266internal void LogWarning(DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object?[]? messageArgs) 275/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 280internal void LogWarningFromText(DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (11)
101LogError(buildEventContext, DiagnosticSubcategory.None, location, messageResourceName, messageArgs); 108/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 113public void LogError(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 126/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 133public void LogErrorFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string errorCode, string helpKeyword, IElementLocation location, string message) 240LogErrorFromText(buildEventContext, DiagnosticSubcategory.None, errorCode, helpKeyword, location, message); 275LogWarningFromText(buildEventContext, DiagnosticSubcategory.None, warningCode, helpKeyword, location, message); 282/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 286public void LogWarning(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 298/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 303public void LogWarningFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
1078DiagnosticSubcategory.None, 1091DiagnosticSubcategory.None, 1133DiagnosticSubcategory.None, 1146DiagnosticSubcategory.None,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1272_projectLoggingContext.LogWarning(DiagnosticSubcategory.None, location, 1277_projectLoggingContext.LogWarning(DiagnosticSubcategory.None, location,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
174DiagnosticSubcategory.None, 1049taskLoggingContext.LogWarning(DiagnosticSubcategory.None,
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
1166_taskLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name); 1296subcategory: DiagnosticSubcategory.None,
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
79loggingContext.LogWarning(DiagnosticSubcategory.None, sdkReferenceLocation, "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, result.Version, result.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
93loggingContext.LogWarning(DiagnosticSubcategory.None, sdkReferenceLocation, "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, sdkResult.Version, sdkResult.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
387loggingContext.LogWarning(DiagnosticSubcategory.None, sdkReferenceLocation, "SdkResultVersionDifferentThanReference", sdk.Name, sdk.Version, result.Version); 466loggingContext.LogWarningFromText(DiagnosticSubcategory.None, null, null, location, warning);
BackEnd\Node\OutOfProcNode.cs (1)
632DiagnosticSubcategory.None,
BackEnd\Shared\EventsCreatorHelper.cs (2)
36DiagnosticSubcategory subcategory, 64DiagnosticSubcategory subcategory,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
2198_taskLoggingContext.LogWarningFromText(DiagnosticSubcategory.None, warningCode, helpKeyword, _taskLocation, message);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
161DiagnosticSubcategory.None,
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
306DiagnosticSubcategory.None,
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
236DiagnosticSubcategory.None, 347DiagnosticSubcategory.None,
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
254DiagnosticSubcategory.None,
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (2)
55public void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 62public void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
38public void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 42public void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (4)
34/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 39void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message); 49/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 54void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message);
Construction\Solution\ProjectInSolution.cs (2)
422DiagnosticSubcategory.SolutionFile, 470DiagnosticSubcategory.SolutionFile,
Construction\Solution\SolutionFile.cs (24)
580DiagnosticSubcategory.SolutionFile, 592DiagnosticSubcategory.SolutionFile, 623DiagnosticSubcategory.SolutionFile, 637DiagnosticSubcategory.SolutionFile, 655DiagnosticSubcategory.SolutionFile, 677DiagnosticSubcategory.SolutionFile, 897DiagnosticSubcategory.SolutionFile, 918DiagnosticSubcategory.SolutionFile, 963DiagnosticSubcategory.SolutionFile, 1011DiagnosticSubcategory.SolutionFile, 1023DiagnosticSubcategory.SolutionFile, 1086DiagnosticSubcategory.SolutionFile, 1108DiagnosticSubcategory.SolutionFile, 1138DiagnosticSubcategory.SolutionFile, 1326DiagnosticSubcategory.SolutionFile, 1334DiagnosticSubcategory.SolutionFile, 1526DiagnosticSubcategory.SolutionFile, 1629DiagnosticSubcategory.SolutionFile, 1640DiagnosticSubcategory.SolutionFile, 1686DiagnosticSubcategory.SolutionFile, 1702DiagnosticSubcategory.SolutionFile, 1719DiagnosticSubcategory.SolutionFile, 1771DiagnosticSubcategory.SolutionFile, 1821DiagnosticSubcategory.SolutionFile,
Construction\Solution\SolutionProjectGenerator.cs (7)
288DiagnosticSubcategory.SolutionFile, 753DiagnosticSubcategory.SolutionFile, 1225DiagnosticSubcategory.SolutionFile, 1295DiagnosticSubcategory.SolutionFile, 1391DiagnosticSubcategory.SolutionFile, 2261DiagnosticSubcategory.SolutionFile, 2289DiagnosticSubcategory.SolutionFile,
Definition\Toolset.cs (4)
598DiagnosticSubcategory.None, 609DiagnosticSubcategory.None, 910loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage); 917loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage);
Errors\ProjectErrorUtilities.cs (78)
28=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName); 39=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName, arg0); 51=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName, arg0, arg1); 64=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName, arg0, arg1, arg2); 75=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName, args); 87=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName); 100=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName, arg0); 119=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName, arg0, arg1); 140=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName, arg0, arg1, arg2); 156=> ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName, args); 161/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 166public static void ThrowInvalidProject(DiagnosticSubcategory subcategory, IElementLocation location, string resourceName) 172/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 178public static void ThrowInvalidProject(DiagnosticSubcategory subcategory, IElementLocation location, string resourceName, object? arg0) 184/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 192DiagnosticSubcategory subcategory, 202/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 211DiagnosticSubcategory subcategory, 222/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 229DiagnosticSubcategory subcategory, 239/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 246DiagnosticSubcategory subcategory, 256/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 264DiagnosticSubcategory subcategory, 275/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 284DiagnosticSubcategory subcategory, 296/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 306DiagnosticSubcategory subcategory, 319/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 327DiagnosticSubcategory subcategory, 343=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, resourceName); 360=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, resourceName, arg0); 380=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, resourceName, arg0, arg1); 403=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, resourceName, arg0, arg1, arg2); 429=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, resourceName, arg0, arg1, arg2, arg3); 448ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException: null, resourceName, args); 466=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, innerException, resourceName); 485=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, innerException, resourceName, arg0); 507=> VerifyThrowInvalidProject(condition, DiagnosticSubcategory.None, location, innerException, resourceName, arg0, arg1); 533condition, DiagnosticSubcategory.None, location, innerException, resourceName, arg0, arg1, arg2); 562condition, DiagnosticSubcategory.None, location, innerException, resourceName, arg0, arg1, arg2, arg3); 583ThrowInvalidProjectCore(DiagnosticSubcategory.None, location, innerException, resourceName, args); 592/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 598DiagnosticSubcategory subcategory, 614/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 621DiagnosticSubcategory subcategory, 639/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 647DiagnosticSubcategory subcategory, 667/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 676DiagnosticSubcategory subcategory, 698/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 708DiagnosticSubcategory subcategory, 727/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 734DiagnosticSubcategory subcategory, 750/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 757DiagnosticSubcategory subcategory, 774/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 782DiagnosticSubcategory subcategory, 801/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 810DiagnosticSubcategory subcategory, 831/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 841DiagnosticSubcategory subcategory, 864/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 875DiagnosticSubcategory subcategory, 895/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 903DiagnosticSubcategory subcategory, 918/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 925DiagnosticSubcategory subcategory, 942/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 950DiagnosticSubcategory subcategory, 968/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 977DiagnosticSubcategory subcategory, 996/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 1006DiagnosticSubcategory subcategory, 1026/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 1034DiagnosticSubcategory subcategory, 1052/// <param name="subcategory">The diagnostic subcategory, or <see cref="DiagnosticSubcategory.None"/> for no subcategory.</param> 1061DiagnosticSubcategory subcategory,
Evaluation\Conditionals\Parser.cs (1)
145LoggingServices.LogWarning(_logBuildEventContext, DiagnosticSubcategory.None, _elementLocation, "ConditionMaybeEvaluatedIncorrectly", expression);
Evaluation\Evaluator.cs (6)
413DiagnosticSubcategory.None, 1274_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 1277_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_OutOfRotation", ChangeWaves.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 2284_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, importLocationInProject, "SelfImport", importFileUnescaped); 2301_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, importLocationInProject, "ImportIntroducesCircularity", importFileUnescaped, importedBy); 2328_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, importLocationInProject, "DuplicateImport", importFileUnescaped, previouslyImportedAt.Location.LocationString, parenthesizedProjectLocation);
Evaluation\PropertiesUseTracker.cs (1)
142loggingContext.LogWarning(DiagnosticSubcategory.None, propertyElement.Location, "UsedUninitializedProperty", propertyElement.Name, elementWhichUsedProperty?.LocationString);
Graph\GraphBuilder.cs (1)
369DiagnosticSubcategory.SolutionFile,
Instance\TaskFactoryEngineContext.cs (1)
392_loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskRegistry.cs (1)
1339DiagnosticSubcategory.None,
Utilities\EngineFileUtilities.cs (1)
435DiagnosticSubcategory.None,
Microsoft.Build.Framework (5)
Errors\DiagnosticSubcategoryExtensions.cs (5)
8public static string? GetDisplayString(this DiagnosticSubcategory subcategory) 11DiagnosticSubcategory.SchemaValidation => SR.SubCategoryForSchemaValidationErrors, 12DiagnosticSubcategory.SolutionFile => SR.SubCategoryForSolutionParsingErrors, 13DiagnosticSubcategory.None => null, 15_ => Assumed.Unreachable<string?>($"Unexpected {nameof(DiagnosticSubcategory)} value: {subcategory}"),