66 references to BuildEventFileInfo
Microsoft.Build (57)
BackEnd\BuildManager\BuildManager.cs (5)
1882((IBuildComponentHost)this).LoggingService.LogFatalBuildError(buildEventContext, ex, new BuildEventFileInfo(submission.BuildRequestData.ProjectFullPath)); 2501loggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, exception); 2508loggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, exception); 2517loggingService.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(String.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString()); 2660((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G"));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
502var buildEventFileInfo = new BuildEventFileInfo(buildRequest.ProjectFullPath); 742var buildEventFileInfo = new BuildEventFileInfo(requestConfiguration.ProjectFullPath);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
304_projectLoggingContext.LogError(new BuildEventFileInfo(String.Empty), "FailedToReceiveTaskThreadStatus", BuildParameters.RequestBuilderShutdownTimeout);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
276_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetCompletely", _targetToAnalyze.Name); 294_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetPartially", _targetToAnalyze.Name);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1121_taskLoggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1039ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
299new BuildEventFileInfo(projectFullPath),
Construction\ProjectRootElement.cs (3)
2044ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile); 2056ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), ex, "InvalidProjectFile", ex.Message); 2109: new BuildEventFileInfo(fullPath);
Construction\Solution\ProjectInSolution.cs (2)
412new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid); 451new BuildEventFileInfo(ParentSolution.FullPath), "SolutionParseNestedProjectErrorWithNameAndGuid", ProjectName, ProjectGuid, ParentProjectGuid);
Construction\Solution\SolutionFile.cs (13)
323new BuildEventFileInfo(solutionFile), 335new BuildEventFileInfo(solutionFile), 366new BuildEventFileInfo(solutionFile), 380new BuildEventFileInfo(_solutionFile), 399new BuildEventFileInfo(solutionFilterFile), 421new BuildEventFileInfo(solutionFilterFile), 485ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(_solutionFile), "InvalidProjectFile", e.Message); 557new BuildEventFileInfo(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))), 644new BuildEventFileInfo(FullPath), 685new BuildEventFileInfo(FullPath), "SolutionParseNoHeaderError"); 844new BuildEventFileInfo(FullPath), "SolutionParseProjectEofError", proj.ProjectName); 1297ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1519new BuildEventFileInfo(FullPath), "SolutionParseInvalidProjectSolutionConfigurationEntry",
Construction\Solution\SolutionProjectGenerator.cs (10)
287ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(dependencyProject != null, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo(solutionFile.FullPath), "SolutionParseProjectDepNotFoundError", project.ProjectGuid, dependencyProjectGuid); 698new BuildEventFileInfo(_solutionFile.FullPath), 1154new BuildEventFileInfo(traversalProject.FullPath), 1310new BuildEventFileInfo(traversalProject.FullPath), 1539new BuildEventFileInfo(_solutionFile.FullPath), 1566new BuildEventFileInfo(_solutionFile.FullPath), 1587new BuildEventFileInfo(_solutionFile.FullPath), 1716new BuildEventFileInfo(solutionFile), 2180new BuildEventFileInfo(project.RelativePath), 2208new BuildEventFileInfo(_solutionFile.FullPath),
Definition\Project.cs (1)
3334LoggingService.LogError(s_buildEventContext, new BuildEventFileInfo(FullPath), "SecurityProjectBuildDisabled");
Definition\Toolset.cs (6)
709new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 721new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 972loggingServices.LogError(buildEventContext, new BuildEventFileInfo(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message); 1008loggingServices.LogWarning(buildEventContext, null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 1015loggingServices.LogWarning(buildEventContext, null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 1059loggingServices.LogError(buildEventContext, new BuildEventFileInfo(currentTasksFile),
Evaluation\Evaluator.cs (2)
1111_evaluationLoggingContext.LogWarning("", new BuildEventFileInfo(""), "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{String.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 1114_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)
1447targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, exception.Message);
Utilities\EngineFileUtilities.cs (1)
400new BuildEventFileInfo(buildEventFileInfoFullPath),
Microsoft.Build.Engine.UnitTests (9)
BackEnd\LoggingServicesLogMethod_Tests.cs (9)
106service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 119service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 217service.LogFatalError(null, new Exception("SuperException"), new BuildEventFileInfo("foo.cs"), "FatalTaskError", "TaskName"); 376service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), "Message"); 402service.LogErrorFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), null); 568service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 581service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 608service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), "Message"); 634service.LogWarningFromText(null, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", new BuildEventFileInfo("foo.cs"), null);