69 references to BuildEventFileInfo
Microsoft.Build (60)
BackEnd\BuildManager\BuildManager.cs (4)
1898((IBuildComponentHost)this).LoggingService.LogFatalBuildError(buildEventContext, ex, new BuildEventFileInfo(submission.BuildRequestData.ProjectFullPath)); 2521loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, exception); 2530loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString()); 2676((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G"));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
506var buildEventFileInfo = new BuildEventFileInfo(buildRequest.ProjectFullPath); 746var buildEventFileInfo = new BuildEventFileInfo(requestConfiguration.ProjectFullPath);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
305_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\TaskHost.cs (1)
1122_taskLoggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1061ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
263new BuildEventFileInfo(projectFullPath),
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
236new BuildEventFileInfo(projectPath), 347new BuildEventFileInfo(projectFullPath),
Construction\ProjectRootElement.cs (3)
2061ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile); 2073ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), ex, "InvalidProjectFile", ex.Message); 2126: new BuildEventFileInfo(fullPath);
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 (15)
316new BuildEventFileInfo(FullPath), 338new BuildEventFileInfo(FullPath), 583new BuildEventFileInfo(solutionFile), 595new BuildEventFileInfo(solutionFile), 626new BuildEventFileInfo(solutionFile), 640new BuildEventFileInfo(_solutionFile), 659new BuildEventFileInfo(solutionFilterFile), 682new BuildEventFileInfo(solutionFilterFile), 751ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(_solutionFile), "InvalidProjectFile", e.Message); 899new BuildEventFileInfo(FullPath), 920new BuildEventFileInfo(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))), 964new BuildEventFileInfo(FullPath), "SolutionParseNoHeaderError"); 1123new BuildEventFileInfo(FullPath), "SolutionParseProjectEofError", proj.ProjectName); 1557ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1777new 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)
3339LoggingService.LogError(s_buildEventContext, new BuildEventFileInfo(FullPath), "SecurityProjectBuildDisabled");
Definition\Toolset.cs (6)
719new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 730new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 978loggingContext.LogError(new BuildEventFileInfo(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message); 1014loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 1021loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 1064loggingContext.LogError(new BuildEventFileInfo(currentTasksFile),
Evaluation\Evaluator.cs (2)
1121_evaluationLoggingContext.LogWarning("", new BuildEventFileInfo(""), "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{String.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 1124_evaluationLoggingContext.LogWarning("", new BuildEventFileInfo(""), "ChangeWave_OutOfRotation", ChangeWaves.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{String.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]");
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29new BuildEventFileInfo(string.Empty),
Graph\GraphBuilder.cs (1)
350new BuildEventFileInfo(Solution.FullPath),
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
294targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message); 445targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message);
Instance\TaskFactoryLoggingHost.cs (1)
348_loggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskRegistry.cs (1)
1527targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, exception.Message);
Utilities\EngineFileUtilities.cs (1)
430new BuildEventFileInfo(buildEventFileInfoFullPath),
Microsoft.Build.Engine.UnitTests (9)
BackEnd\LoggingServicesLogMethod_Tests.cs (9)
105service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 118service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 216service.LogFatalError(null, new Exception("SuperException"), new BuildEventFileInfo("foo.cs"), "FatalTaskError", "TaskName"); 375service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), "Message"); 401service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), null); 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);