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