153 instantiations of BuildEventFileInfo
Microsoft.Build (129)
BackEnd\BuildManager\BuildManager.cs (4)
1941
((IBuildComponentHost)this).LoggingService.LogFatalBuildError(buildEventContext, ex, new
BuildEventFileInfo
(submission.BuildRequestData.ProjectFullPath));
2568
loggingService?.LogError(buildEventContext, new
BuildEventFileInfo
(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, exception);
2577
loggingService?.LogError(BuildEventContext.Invalid, new
BuildEventFileInfo
(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString());
2723
((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new
BuildEventFileInfo
(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G"));
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
924
new
BuildEventFileInfo
(Construction.ElementLocation.EmptyLocation));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
583
var buildEventFileInfo = new
BuildEventFileInfo
(buildRequest.ProjectFullPath);
845
var buildEventFileInfo = new
BuildEventFileInfo
(requestConfiguration.ProjectFullPath);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
306
_projectLoggingContext.LogError(new
BuildEventFileInfo
(String.Empty), "FailedToReceiveTaskThreadStatus", BuildParameters.RequestBuilderShutdownTimeout);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
277
_loggingService.LogError(_buildEventContext, new
BuildEventFileInfo
(String.Empty), "BuildTargetCompletely", _targetToAnalyze.Name);
295
_loggingService.LogError(_buildEventContext, new
BuildEventFileInfo
(String.Empty), "BuildTargetPartially", _targetToAnalyze.Name);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
822
new
BuildEventFileInfo
(_targetChildInstance.Location),
930
new
BuildEventFileInfo
(_targetChildInstance.Location),
940
new
BuildEventFileInfo
(_targetChildInstance.Location),
969
new
BuildEventFileInfo
(_targetChildInstance.Location),
977
taskLoggingContext.LogError(new
BuildEventFileInfo
(_targetChildInstance.Location),
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
1125
_taskLoggingContext.LogWarning(null, new
BuildEventFileInfo
(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
1258
file: new
BuildEventFileInfo
(ProjectFileOfTaskNode, LineNumberOfTaskNode, ColumnNumberOfTaskNode),
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
79
loggingContext.LogWarning(null, new
BuildEventFileInfo
(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, result.Version, result.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
87
loggingService.LogFatalBuildError(loggingContext.BuildEventContext, e, new
BuildEventFileInfo
(request.ElementLocation));
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
93
loggingContext.LogWarning(null, new
BuildEventFileInfo
(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, sdkResult.Version, sdkResult.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
130
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), "SdkResolverNoDllOrManifest", subfolder.FullName);
193
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), "SdkResolverDllInManifestMissing", pathToManifest, string.Empty);
199
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), e, "SdkResolverManifestInvalid", pathToManifest, e.Message);
204
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), "SdkResolverDllInManifestMissing", pathToManifest, manifest.Path);
278
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), e, "CouldNotLoadSdkResolverAssembly", resolverPath, e.Message);
295
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), e.InnerException ?? e, "CouldNotLoadSdkResolver", type.Name, message);
299
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(location), e, "CouldNotLoadSdkResolver", type.Name, e.Message);
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
259
loggingContext.LogError(new
BuildEventFileInfo
(sdkReferenceLocation), "SingleResolverFailedToResolveSDK", sdk.Name, resolvers[0].Name, string.Join(Environment.NewLine, errors));
264
loggingContext.LogError(new
BuildEventFileInfo
(sdkReferenceLocation), "FailedToResolveSDK", sdk.Name, string.Join($"{Environment.NewLine} ", errors));
374
loggingContext.LogWarning(null, new
BuildEventFileInfo
(sdkReferenceLocation), "SdkResultVersionDifferentThanReference", sdk.Name, sdk.Version, result.Version);
453
loggingContext.LogWarningFromText(null, null, null, new
BuildEventFileInfo
(location), warning);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1067
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (18)
407
_taskLoggingContext.LogError(new
BuildEventFileInfo
(_taskLocation), "TaskParametersError", _taskName, e.Message);
514
new
BuildEventFileInfo
(parameterLocation),
531
new
BuildEventFileInfo
(parameterLocation),
690
_taskLoggingContext.LogFatalTaskError(e, new
BuildEventFileInfo
(_taskLocation), ((ProjectTaskInstance)_taskLoggingContext.Task).Name);
909
new
BuildEventFileInfo
(_taskLocation),
931
new
BuildEventFileInfo
(_taskLocation),
995
new
BuildEventFileInfo
(_taskLocation),
1027
new
BuildEventFileInfo
(_taskLocation),
1038
new
BuildEventFileInfo
(_taskLocation),
1048
new
BuildEventFileInfo
(_taskLocation),
1136
new
BuildEventFileInfo
(parameterLocation),
1147
new
BuildEventFileInfo
(parameterLocation),
1158
new
BuildEventFileInfo
(parameterLocation),
1169
new
BuildEventFileInfo
(parameterLocation),
1412
new
BuildEventFileInfo
(_taskLocation),
1421
new
BuildEventFileInfo
(_taskLocation),
1706
_targetLoggingContext.LogError(new
BuildEventFileInfo
(_taskLocation), "AttributeTypeLoadError", _taskName, e.Message);
1722
_taskLoggingContext.LogWarningFromText(null, warningCode, helpKeyword, new
BuildEventFileInfo
(_taskLocation), message);
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
263
new
BuildEventFileInfo
(projectFullPath),
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
236
new
BuildEventFileInfo
(projectPath),
347
new
BuildEventFileInfo
(projectFullPath),
BuildEventFileInfo.cs (1)
17
internal static BuildEventFileInfo Empty = new
BuildEventFileInfo
(ElementLocation.EmptyLocation);
Construction\ProjectRootElement.cs (5)
2061
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile);
2073
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(projectFile), ex, "InvalidProjectFile", ex.Message);
2125
? new
BuildEventFileInfo
(fullPath, xmlException)
2126
: new
BuildEventFileInfo
(fullPath);
2150
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
(ex);
Construction\Solution\ProjectInSolution.cs (2)
427
new
BuildEventFileInfo
(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid);
469
new
BuildEventFileInfo
(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid);
Construction\Solution\SolutionFile.cs (29)
316
new
BuildEventFileInfo
(FullPath),
331
new
BuildEventFileInfo
(errorLocation),
338
new
BuildEventFileInfo
(FullPath),
583
new
BuildEventFileInfo
(solutionFile),
595
new
BuildEventFileInfo
(solutionFile),
626
new
BuildEventFileInfo
(solutionFile),
640
new
BuildEventFileInfo
(_solutionFile),
659
new
BuildEventFileInfo
(solutionFilterFile),
682
new
BuildEventFileInfo
(solutionFilterFile),
751
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(_solutionFile), "InvalidProjectFile", e.Message);
899
new
BuildEventFileInfo
(FullPath),
920
new
BuildEventFileInfo
(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))),
964
new
BuildEventFileInfo
(FullPath), "SolutionParseNoHeaderError");
1010
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseVersionMismatchError",
1020
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0),
1079
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseProjectDepGuidError", proj.ProjectName);
1097
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseWebProjectPropertiesError", proj.ProjectName);
1123
new
BuildEventFileInfo
(FullPath), "SolutionParseProjectEofError", proj.ProjectName);
1308
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0),
1315
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0),
1505
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseProjectError");
1557
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath);
1605
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectError");
1613
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectUndefinedError", projectGuid, parentProjectGuid);
1654
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str);
1666
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str);
1681
new
BuildEventFileInfo
(projectPath, lineNumber, 0),
1731
new
BuildEventFileInfo
(FullPath, _currentLineNumber, 0), "SolutionParseInvalidProjectSolutionConfigurationEntry", str);
1777
new
BuildEventFileInfo
(FullPath), "SolutionParseInvalidProjectSolutionConfigurationEntry",
Construction\Solution\SolutionProjectGenerator.cs (7)
287
ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(dependencyProject != null, "SubCategoryForSolutionParsingErrors", new
BuildEventFileInfo
(solutionFile.FullPath), "SolutionParseProjectDepNotFoundError", project.ProjectGuid, dependencyProjectGuid);
701
new
BuildEventFileInfo
(_solutionFile.FullPath),
1171
new
BuildEventFileInfo
(traversalProject.FullPath),
1241
new
BuildEventFileInfo
(_solutionFile.FullPath),
1327
new
BuildEventFileInfo
(traversalProject.FullPath),
2197
new
BuildEventFileInfo
(project.RelativePath),
2225
new
BuildEventFileInfo
(_solutionFile.FullPath),
Definition\Project.cs (1)
3353
LoggingService.LogError(s_buildEventContext, new
BuildEventFileInfo
(FullPath), "SecurityProjectBuildDisabled");
Definition\Toolset.cs (7)
600
new
BuildEventFileInfo
(/* this warning truly does not involve any file */ String.Empty),
611
new
BuildEventFileInfo
(/* this warning truly does not involve any file */ String.Empty),
866
loggingContext.LogError(new
BuildEventFileInfo
(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message);
907
loggingContext.LogWarning(null, new
BuildEventFileInfo
(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage);
914
loggingContext.LogWarning(null, new
BuildEventFileInfo
(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage);
954
ProjectFileErrorUtilities.ThrowInvalidProjectFile(new
BuildEventFileInfo
(currentTasksFile, e),
959
loggingContext.LogError(new
BuildEventFileInfo
(currentTasksFile),
Evaluation\Conditionals\Parser.cs (1)
146
LoggingServices.LogWarning(_logBuildEventContext, null, new
BuildEventFileInfo
(_elementLocation), "ConditionMaybeEvaluatedIncorrectly", expression);
Evaluation\Evaluator.cs (6)
350
evaluator._evaluationLoggingContext.LogErrorFromText(null, null, null, new
BuildEventFileInfo
(root.ProjectFileLocation.File),
1126
_evaluationLoggingContext.LogWarning("", new
BuildEventFileInfo
(""), "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]");
1129
_evaluationLoggingContext.LogWarning("", new
BuildEventFileInfo
(""), "ChangeWave_OutOfRotation", ChangeWaves.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]");
2135
_evaluationLoggingContext.LogWarning(null, new
BuildEventFileInfo
(importLocationInProject), "SelfImport", importFileUnescaped);
2152
_evaluationLoggingContext.LogWarning(null, new
BuildEventFileInfo
(importLocationInProject), "ImportIntroducesCircularity", importFileUnescaped, importedBy);
2179
_evaluationLoggingContext.LogWarning(null, new
BuildEventFileInfo
(importLocationInProject), "DuplicateImport", importFileUnescaped, previouslyImportedAt.Location.LocationString, parenthesizedProjectLocation);
Evaluation\Expander.cs (1)
1184
evaluator._loggingContext.LogComment(MessageImportance.Low, new
BuildEventFileInfo
(evaluator._elementLocation),
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29
new
BuildEventFileInfo
(string.Empty),
Evaluation\PropertiesUseTracker.cs (1)
143
loggingContext.LogWarning(null, new
BuildEventFileInfo
(propertyElement.Location), "UsedUninitializedProperty", propertyElement.Name, elementWhichUsedProperty?.LocationString);
Graph\GraphBuilder.cs (1)
350
new
BuildEventFileInfo
(Solution.FullPath),
Instance\TaskFactories\AssemblyTaskFactory.cs (3)
312
targetLoggingContext.LogError(new
BuildEventFileInfo
(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message);
483
targetLoggingContext.LogError(new
BuildEventFileInfo
(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message);
743
_taskLoggingContext.LogError(new
BuildEventFileInfo
(taskLocation, taskLine, taskColumn), message, messageArgs);
Instance\TaskFactories\TaskHostTask.cs (4)
563
_taskLoggingContext.LogFatalError(taskHostTaskComplete.TaskException, new
BuildEventFileInfo
(_taskLocation), taskHostTaskComplete.TaskExceptionMessage, taskHostTaskComplete.TaskExceptionMessageArgs);
587
_taskLoggingContext.LogError(new
BuildEventFileInfo
(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString());
660
_taskLoggingContext.LogError(new
BuildEventFileInfo
(_taskLocation), "TaskHostAcquireFailed", _taskType.Type.Name, runtime, architecture, msbuildLocation);
664
_taskLoggingContext.LogError(new
BuildEventFileInfo
(_taskLocation), "TaskHostNodeFailedToLaunch", _taskType.Type.Name, runtime, architecture, msbuildLocation, e.ErrorCode, e.Message);
Instance\TaskFactoryLoggingHost.cs (1)
348
_loggingContext.LogWarning(null, new
BuildEventFileInfo
(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskRegistry.cs (4)
733
loggingContext.LogError(new
BuildEventFileInfo
(projectUsingTaskInXml.OverrideLocation), "DuplicateOverrideUsingTaskElement", taskName);
1560
targetLoggingContext.LogError(new
BuildEventFileInfo
(taskProjectFile), "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, exception.Message);
1603
new
BuildEventFileInfo
(elementLocation),
1641
new
BuildEventFileInfo
(elementLocation.File, elementLocation.Line, elementLocation.Column),
Utilities\EngineFileUtilities.cs (1)
430
new
BuildEventFileInfo
(buildEventFileInfoFullPath),
Microsoft.Build.Engine.UnitTests (24)
BackEnd\LoggingServicesLogMethod_Tests.cs (24)
105
service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new
BuildEventFileInfo
("foo.cs"), null, "MyTask");
118
service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new
BuildEventFileInfo
("foo.cs"), string.Empty, "MyTask");
128
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
187
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
(exception.ProjectFile, exception.LineNumber, exception.ColumnNumber, exception.EndLineNumber, exception.EndColumnNumber);
216
service.LogFatalError(null, new Exception("SuperException"), new
BuildEventFileInfo
("foo.cs"), "FatalTaskError", "TaskName");
239
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
259
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
273
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
285
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
309
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
333
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
345
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
375
service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new
BuildEventFileInfo
("foo.cs"), "Message");
401
service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new
BuildEventFileInfo
("foo.cs"), null);
510
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
524
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
537
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
569
service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new
BuildEventFileInfo
("foo.cs"), null, "MyTask");
582
service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new
BuildEventFileInfo
("foo.cs"), string.Empty, "MyTask");
609
service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new
BuildEventFileInfo
("foo.cs"), "Message");
635
service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new
BuildEventFileInfo
("foo.cs"), null);
1343
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
1364
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
1384
BuildEventFileInfo fileInfo = new
BuildEventFileInfo
("foo.cs", 1, 2, 3, 4);
91 references to BuildEventFileInfo
Microsoft.Build (65)
BackEnd\BuildManager\BuildManager.cs (1)
3345
BuildEventFileInfo
.Empty,
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
944
BuildEventFileInfo
.Empty,
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
60
internal void LogFatalTaskError(Exception exception,
BuildEventFileInfo
file, string taskName)
BackEnd\Components\Logging\ILoggingService.cs (9)
390
void LogError(BuildEventContext buildEventContext,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs);
400
void LogError(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs);
411
void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword,
BuildEventFileInfo
file, string message);
426
void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file);
435
void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName);
445
void LogFatalError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs);
456
void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName);
466
void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs);
477
void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword,
BuildEventFileInfo
file, string message);
BackEnd\Components\Logging\LoggingContext.cs (9)
138
internal void LogComment(MessageImportance importance,
BuildEventFileInfo
file, string messageResourceName, params object?[]? messageArgs)
190
internal void LogError(
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
204
internal void LogErrorWithSubcategory(string? subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
219
internal void LogErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
244
internal void LogFatalError(Exception exception,
BuildEventFileInfo
file, string messageResourceName, params object?[]? messageArgs)
254
_loggingService.LogWarning(_eventContext, null,
BuildEventFileInfo
.Empty, messageResourceName, messageArgs);
264
internal void LogWarning(string? subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object?[]? messageArgs)
278
internal void LogWarningFromText(string? subcategoryResourceName, string warningCode, string helpKeyword,
BuildEventFileInfo
file, string message)
299
internal void LogFatalBuildError(Exception exception,
BuildEventFileInfo
file)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (9)
97
public void LogError(BuildEventContext location,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
111
public void LogError(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
131
public void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword,
BuildEventFileInfo
file, string message)
194
public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file)
208
public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName)
225
public void LogFatalError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
259
public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName)
284
public void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
301
public void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword,
BuildEventFileInfo
file, string message)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
148
internal void LogTaskWarningFromException(Exception exception,
BuildEventFileInfo
file, string taskName)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (10)
203
BuildEventFileInfo
buildEventFileInfo =
BuildEventFileInfo
.Empty;
583
var
buildEventFileInfo = new BuildEventFileInfo(buildRequest.ProjectFullPath);
845
var
buildEventFileInfo = new BuildEventFileInfo(requestConfiguration.ProjectFullPath);
926
BuildEventFileInfo
buildEventFileInfo =
BuildEventFileInfo
.Empty;
1022
private readonly
BuildEventFileInfo
_buildEventFileInfo;
1029
BuildEventFileInfo
buildEventFileInfo)
1077
private readonly
BuildEventFileInfo
_buildEventFileInfo;
1084
BuildEventFileInfo
buildEventFileInfo)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
655
BuildEventFileInfo
.Empty,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
825
BuildEventFileInfo
.Empty,
839
(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(
BuildEventFileInfo
.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Node\OutOfProcNode.cs (1)
616
_loggingContext?.BuildEventContext ?? BuildEventContext.Invalid, null,
BuildEventFileInfo
.Empty,
BackEnd\Shared\EventsCreatorHelper.cs (2)
29
public static BuildErrorEventArgs CreateErrorEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
60
public static BuildWarningEventArgs CreateWarningEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
253
BuildEventFileInfo
.Empty,
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (2)
54
public void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
61
public void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
37
public void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
41
public void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
33
void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message);
43
void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword,
BuildEventFileInfo
file, string message);
BuildEventFileInfo.cs (1)
17
internal static
BuildEventFileInfo
Empty = new BuildEventFileInfo(ElementLocation.EmptyLocation);
Construction\ProjectRootElement.cs (2)
2124
BuildEventFileInfo
fileInfo = ex is XmlException xmlException
2150
BuildEventFileInfo
fileInfo = new BuildEventFileInfo(ex);
Construction\Solution\ProjectInSolution.cs (1)
22
using BuildEventFileInfo = Microsoft.Build.Shared.
BuildEventFileInfo
;
Construction\Solution\SolutionFile.cs (1)
22
using BuildEventFileInfo = Microsoft.Build.Shared.
BuildEventFileInfo
;
ProjectFileErrorUtilities.cs (6)
28
BuildEventFileInfo
projectFile,
47
BuildEventFileInfo
projectFile,
68
BuildEventFileInfo
projectFile,
88
BuildEventFileInfo
projectFile,
110
BuildEventFileInfo
projectFile,
133
BuildEventFileInfo
projectFile,
Microsoft.Build.Engine.UnitTests (26)
BackEnd\LoggingServicesLogMethod_Tests.cs (17)
128
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
187
BuildEventFileInfo
fileInfo = new BuildEventFileInfo(exception.ProjectFile, exception.LineNumber, exception.ColumnNumber, exception.EndLineNumber, exception.EndColumnNumber);
239
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
259
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
273
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
285
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
309
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
333
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
345
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
510
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
524
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
537
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
1343
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
1364
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
1384
BuildEventFileInfo
fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
1726
private void VerifyBuildWarningEventArgs(
BuildEventFileInfo
fileInfo, string warningCode, string helpKeyword, string message, ProcessBuildEventHelper service, string subcategory)
1753
private void VerifyBuildErrorEventArgs(
BuildEventFileInfo
fileInfo, string errorCode, string helpKeyword, string message, ProcessBuildEventHelper service, string subcategory)
BackEnd\MockLoggingService.cs (9)
377
public void LogError(BuildEventContext buildEventContext,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
394
public void LogError(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
412
public void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword,
BuildEventFileInfo
file, string message)
432
public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file)
444
public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName)
456
public void LogFatalError(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
467
public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception,
BuildEventFileInfo
file, string taskName)
479
public void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName,
BuildEventFileInfo
file, string messageResourceName, params object[] messageArgs)
497
public void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword,
BuildEventFileInfo
file, string message)