157 instantiations of BuildEventFileInfo
Microsoft.Build (133)
BackEnd\BuildManager\BuildManager.cs (4)
2046((IBuildComponentHost)this).LoggingService.LogFatalBuildError(buildEventContext, ex, new BuildEventFileInfo(submission.BuildRequestData.ProjectFullPath)); 2673loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, exception); 2682loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString()); 2828((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G"));
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
938new BuildEventFileInfo(Construction.ElementLocation.EmptyLocation));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
583var buildEventFileInfo = new BuildEventFileInfo(buildRequest.ProjectFullPath); 847var buildEventFileInfo = new BuildEventFileInfo(requestConfiguration.ProjectFullPath);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
307_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 (6)
177new BuildEventFileInfo(taskInstance.Location), 842new BuildEventFileInfo(_targetChildInstance.Location), 950new BuildEventFileInfo(_targetChildInstance.Location), 960new BuildEventFileInfo(_targetChildInstance.Location), 989new BuildEventFileInfo(_targetChildInstance.Location), 997taskLoggingContext.LogError(new BuildEventFileInfo(_targetChildInstance.Location),
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
1125_taskLoggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name); 1258file: new BuildEventFileInfo(ProjectFileOfTaskNode, LineNumberOfTaskNode, ColumnNumberOfTaskNode),
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
79loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, result.Version, result.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
87loggingService.LogFatalBuildError(loggingContext.BuildEventContext, e, new BuildEventFileInfo(request.ElementLocation));
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
93loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, sdkResult.Version, sdkResult.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
130ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverNoDllOrManifest", subfolder.FullName); 193ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, string.Empty); 199ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "SdkResolverManifestInvalid", pathToManifest, e.Message); 204ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, manifest.Path); 305ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "CouldNotLoadSdkResolverAssembly", resolverPath, e.Message); 322ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e.InnerException ?? e, "CouldNotLoadSdkResolver", type.Name, message); 326ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "CouldNotLoadSdkResolver", type.Name, e.Message);
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
259loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "SingleResolverFailedToResolveSDK", sdk.Name, resolvers[0].Name, string.Join(Environment.NewLine, errors)); 264loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "FailedToResolveSDK", sdk.Name, string.Join($"{Environment.NewLine} ", errors)); 374loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "SdkResultVersionDifferentThanReference", sdk.Name, sdk.Version, result.Version); 453loggingContext.LogWarningFromText(null, null, null, new BuildEventFileInfo(location), warning);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1068ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (18)
438_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskParametersError", _taskName, e.Message); 545new BuildEventFileInfo(parameterLocation), 562new BuildEventFileInfo(parameterLocation), 722_taskLoggingContext.LogFatalTaskError(e, new BuildEventFileInfo(_taskLocation), ((ProjectTaskInstance)_taskLoggingContext.Task).Name); 941new BuildEventFileInfo(_taskLocation), 951new BuildEventFileInfo(_taskLocation), 1026new BuildEventFileInfo(_taskLocation), 1067new BuildEventFileInfo(_taskLocation), 1078new BuildEventFileInfo(_taskLocation), 1088new BuildEventFileInfo(_taskLocation), 1176new BuildEventFileInfo(parameterLocation), 1187new BuildEventFileInfo(parameterLocation), 1198new BuildEventFileInfo(parameterLocation), 1209new BuildEventFileInfo(parameterLocation), 1452new BuildEventFileInfo(_taskLocation), 1461new BuildEventFileInfo(_taskLocation), 1746_targetLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "AttributeTypeLoadError", _taskName, e.Message); 1762_taskLoggingContext.LogWarningFromText(null, warningCode, helpKeyword, new BuildEventFileInfo(_taskLocation), message);
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
263new BuildEventFileInfo(projectFullPath),
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
236new BuildEventFileInfo(projectPath), 347new BuildEventFileInfo(projectFullPath),
BuildEventFileInfo.cs (1)
17internal static BuildEventFileInfo Empty = new BuildEventFileInfo(ElementLocation.EmptyLocation);
Construction\ProjectRootElement.cs (5)
2061ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile); 2073ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), ex, "InvalidProjectFile", ex.Message); 2125? new BuildEventFileInfo(fullPath, xmlException) 2126: new BuildEventFileInfo(fullPath); 2150BuildEventFileInfo fileInfo = new BuildEventFileInfo(ex);
Construction\Solution\ProjectInSolution.cs (2)
427new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid); 469new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid);
Construction\Solution\SolutionFile.cs (29)
315new BuildEventFileInfo(FullPath), 330new BuildEventFileInfo(errorLocation), 337new BuildEventFileInfo(FullPath), 582new BuildEventFileInfo(solutionFile), 594new BuildEventFileInfo(solutionFile), 625new BuildEventFileInfo(solutionFile), 639new BuildEventFileInfo(_solutionFile), 658new BuildEventFileInfo(solutionFilterFile), 681new BuildEventFileInfo(solutionFilterFile), 750ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(_solutionFile), "InvalidProjectFile", e.Message); 898new BuildEventFileInfo(FullPath), 919new BuildEventFileInfo(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))), 963new BuildEventFileInfo(FullPath), "SolutionParseNoHeaderError"); 1009new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseVersionMismatchError", 1019new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1078new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseProjectDepGuidError", proj.ProjectName); 1096new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseWebProjectPropertiesError", proj.ProjectName); 1122new BuildEventFileInfo(FullPath), "SolutionParseProjectEofError", proj.ProjectName); 1307new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1314new BuildEventFileInfo(FullPath, _currentLineNumber, 0), 1504new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseProjectError"); 1556ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1604new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectError"); 1612new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseNestedProjectUndefinedError", projectGuid, parentProjectGuid); 1653new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str); 1665new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidSolutionConfigurationEntry", str); 1680new BuildEventFileInfo(projectPath, lineNumber, 0), 1730new BuildEventFileInfo(FullPath, _currentLineNumber, 0), "SolutionParseInvalidProjectSolutionConfigurationEntry", str); 1776new BuildEventFileInfo(FullPath), "SolutionParseInvalidProjectSolutionConfigurationEntry",
Construction\Solution\SolutionProjectGenerator.cs (10)
287ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(dependencyProject != null, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo(solutionFile.FullPath), "SolutionParseProjectDepNotFoundError", project.ProjectGuid, dependencyProjectGuid); 701new BuildEventFileInfo(_solutionFile.FullPath), 1171new BuildEventFileInfo(traversalProject.FullPath), 1327new BuildEventFileInfo(traversalProject.FullPath), 1556new BuildEventFileInfo(_solutionFile.FullPath), 1583new BuildEventFileInfo(_solutionFile.FullPath), 1604new BuildEventFileInfo(_solutionFile.FullPath), 1733new BuildEventFileInfo(solutionFile), 2197new BuildEventFileInfo(project.RelativePath), 2225new BuildEventFileInfo(_solutionFile.FullPath),
Definition\Project.cs (1)
3353LoggingService.LogError(s_buildEventContext, new BuildEventFileInfo(FullPath), "SecurityProjectBuildDisabled");
Definition\Toolset.cs (7)
600new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 611new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 866loggingContext.LogError(new BuildEventFileInfo(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message); 907loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 914loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 954ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(currentTasksFile, e), 959loggingContext.LogError(new BuildEventFileInfo(currentTasksFile),
Evaluation\Conditionals\Parser.cs (1)
146LoggingServices.LogWarning(_logBuildEventContext, null, new BuildEventFileInfo(_elementLocation), "ConditionMaybeEvaluatedIncorrectly", expression);
Evaluation\Evaluator.cs (6)
350evaluator._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)
1184evaluator._loggingContext.LogComment(MessageImportance.Low, new BuildEventFileInfo(evaluator._elementLocation),
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29new BuildEventFileInfo(string.Empty),
Evaluation\PropertiesUseTracker.cs (1)
143loggingContext.LogWarning(null, new BuildEventFileInfo(propertyElement.Location), "UsedUninitializedProperty", propertyElement.Name, elementWhichUsedProperty?.LocationString);
Graph\GraphBuilder.cs (1)
351new BuildEventFileInfo(Solution.FullPath),
Instance\TaskFactories\AssemblyTaskFactory.cs (3)
293targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message); 492targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message); 760_taskLoggingContext.LogError(new BuildEventFileInfo(taskLocation, taskLine, taskColumn), message, messageArgs);
Instance\TaskFactories\TaskHostTask.cs (4)
578_taskLoggingContext.LogFatalError(taskHostTaskComplete.TaskException, new BuildEventFileInfo(_taskLocation), taskHostTaskComplete.TaskExceptionMessage, taskHostTaskComplete.TaskExceptionMessageArgs); 602_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString()); 722_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostAcquireFailed", _taskType.Type.Name, runtime, architecture, msbuildLocation); 727new BuildEventFileInfo(_taskLocation),
Instance\TaskFactoryEngineContext.cs (1)
392_loggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskRegistry.cs (4)
726loggingContext.LogError(new BuildEventFileInfo(projectUsingTaskInXml.OverrideLocation), "DuplicateOverrideUsingTaskElement", taskName); 1490targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, exception.Message); 1544new BuildEventFileInfo(elementLocation), 1582new BuildEventFileInfo(elementLocation.File, elementLocation.Line, elementLocation.Column),
Utilities\EngineFileUtilities.cs (1)
430new BuildEventFileInfo(buildEventFileInfoFullPath),
Microsoft.Build.Engine.UnitTests (24)
BackEnd\LoggingServicesLogMethod_Tests.cs (24)
105service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 118service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 128BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 187BuildEventFileInfo fileInfo = new BuildEventFileInfo(exception.ProjectFile, exception.LineNumber, exception.ColumnNumber, exception.EndLineNumber, exception.EndColumnNumber); 216service.LogFatalError(null, new Exception("SuperException"), new BuildEventFileInfo("foo.cs"), "FatalTaskError", "TaskName"); 239BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 259BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 273BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 285BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 309BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 333BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 345BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 375service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), "Message"); 401service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), null); 510BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 524BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 537BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 569service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 582service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 609service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), "Message"); 635service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), null); 1343BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1364BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1384BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4);
93 references to BuildEventFileInfo
Microsoft.Build (67)
BackEnd\BuildManager\BuildManager.cs (2)
3280file: BuildEventFileInfo.Empty, 3461BuildEventFileInfo.Empty,
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
45loggingService.LogWarning(BuildEventContext.Invalid, null, BuildEventFileInfo.Empty, "DotnetHostPathIsDirectory", dotnetHostPath);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1226BuildEventFileInfo.Empty,
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
58internal void LogFatalTaskError(Exception exception, BuildEventFileInfo file, string taskName)
BackEnd\Components\Logging\ILoggingService.cs (9)
396void LogError(BuildEventContext buildEventContext, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 406void LogError(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 417void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword, BuildEventFileInfo file, string message); 432void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file); 441void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName); 451void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 462void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName); 472void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 483void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message);
BackEnd\Components\Logging\LoggingContext.cs (9)
138internal void LogComment(MessageImportance importance, BuildEventFileInfo file, string messageResourceName, params object?[]? messageArgs) 190internal void LogError(BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 204internal void LogErrorWithSubcategory(string? subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 219internal void LogErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 244internal void LogFatalError(Exception exception, BuildEventFileInfo file, string messageResourceName, params object?[]? messageArgs) 254_loggingService.LogWarning(_eventContext, null, BuildEventFileInfo.Empty, messageResourceName, messageArgs); 264internal void LogWarning(string? subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object?[]? messageArgs) 278internal void LogWarningFromText(string? subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message) 299internal void LogFatalBuildError(Exception exception, BuildEventFileInfo file)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (9)
97public void LogError(BuildEventContext location, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 111public void LogError(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 131public void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword, BuildEventFileInfo file, string message) 194public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file) 208public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 225public void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 259public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 284public void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 301public void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
148internal void LogTaskWarningFromException(Exception exception, BuildEventFileInfo file, string taskName)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (10)
203BuildEventFileInfo buildEventFileInfo = BuildEventFileInfo.Empty; 583var buildEventFileInfo = new BuildEventFileInfo(buildRequest.ProjectFullPath); 847var buildEventFileInfo = new BuildEventFileInfo(requestConfiguration.ProjectFullPath); 928BuildEventFileInfo buildEventFileInfo = BuildEventFileInfo.Empty; 1024private readonly BuildEventFileInfo _buildEventFileInfo; 1031BuildEventFileInfo buildEventFileInfo) 1079private readonly BuildEventFileInfo _buildEventFileInfo; 1086BuildEventFileInfo buildEventFileInfo)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
664BuildEventFileInfo.Empty,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
826BuildEventFileInfo.Empty, 840(((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)
29public static BuildErrorEventArgs CreateErrorEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 60public static BuildWarningEventArgs CreateWarningEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message)
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
253BuildEventFileInfo.Empty,
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (2)
54public void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 61public void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
37public void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 41public void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
33void DispatchAsErrorFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message); 43void DispatchAsWarningFromText(string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message);
BuildEventFileInfo.cs (1)
17internal static BuildEventFileInfo Empty = new BuildEventFileInfo(ElementLocation.EmptyLocation);
Construction\ProjectRootElement.cs (2)
2124BuildEventFileInfo fileInfo = ex is XmlException xmlException 2150BuildEventFileInfo fileInfo = new BuildEventFileInfo(ex);
Construction\Solution\ProjectInSolution.cs (1)
22using BuildEventFileInfo = Microsoft.Build.Shared.BuildEventFileInfo;
Construction\Solution\SolutionFile.cs (1)
22using BuildEventFileInfo = Microsoft.Build.Shared.BuildEventFileInfo;
ProjectFileErrorUtilities.cs (6)
28BuildEventFileInfo projectFile, 47BuildEventFileInfo projectFile, 68BuildEventFileInfo projectFile, 88BuildEventFileInfo projectFile, 110BuildEventFileInfo projectFile, 133BuildEventFileInfo projectFile,
Microsoft.Build.Engine.UnitTests (26)
BackEnd\LoggingServicesLogMethod_Tests.cs (17)
128BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 187BuildEventFileInfo fileInfo = new BuildEventFileInfo(exception.ProjectFile, exception.LineNumber, exception.ColumnNumber, exception.EndLineNumber, exception.EndColumnNumber); 239BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 259BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 273BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 285BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 309BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 333BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 345BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 510BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 524BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 537BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1343BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1364BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1384BuildEventFileInfo fileInfo = new BuildEventFileInfo("foo.cs", 1, 2, 3, 4); 1726private void VerifyBuildWarningEventArgs(BuildEventFileInfo fileInfo, string warningCode, string helpKeyword, string message, ProcessBuildEventHelper service, string subcategory) 1753private void VerifyBuildErrorEventArgs(BuildEventFileInfo fileInfo, string errorCode, string helpKeyword, string message, ProcessBuildEventHelper service, string subcategory)
BackEnd\MockLoggingService.cs (9)
377public void LogError(BuildEventContext buildEventContext, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 394public void LogError(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 412public void LogErrorFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string errorCode, string helpKeyword, BuildEventFileInfo file, string message) 432public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file) 444public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 456public void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 467public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 479public void LogWarning(BuildEventContext buildEventContext, string subcategoryResourceName, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 497public void LogWarningFromText(BuildEventContext buildEventContext, string subcategoryResourceName, string warningCode, string helpKeyword, BuildEventFileInfo file, string message)