1 type derived from ProjectStartedEventArgs
Microsoft.Build.Framework.UnitTests (1)
ProjectStartedEventArgs_Tests.cs (1)
57private sealed class ProjectStartedEventArgs2 : ProjectStartedEventArgs
51 instantiations of ProjectStartedEventArgs
Microsoft.Build (3)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
583var buildEvent = new ProjectStartedEventArgs(
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
762var e = new ProjectStartedEventArgs(
LogMessagePacketBase.cs (1)
628LoggingEventType.ProjectStartedEvent => new ProjectStartedEventArgs(null, null, null, null, null, null),
Microsoft.Build.CommandLine.UnitTests (1)
TerminalLogger_Tests.cs (1)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>())
Microsoft.Build.Engine.UnitTests (27)
BackEnd\EventSourceSink_Tests.cs (1)
780private static ProjectStartedEventArgs s_projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null);
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1685ProjectStartedEventArgs buildEvent = new ProjectStartedEventArgs(
BackEnd\MockLoggingService.cs (1)
568return new ProjectStartedEventArgs(
BackEnd\NodePackets_Tests.cs (2)
60ProjectStartedEventArgs projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null); 282new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null),
BuildEventArgsSerialization_Tests.cs (1)
154var args = new ProjectStartedEventArgs(
ConfigureableForwardingLogger_Tests.cs (1)
31private readonly ProjectStartedEventArgs _projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null);
ConsoleLogger_Tests.cs (20)
465es.Consume(new ProjectStartedEventArgs(null, null, "p", null, null, null)); 494ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, null, null, "p", null, null, null, buildEventContext); 727ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 1, 1, 1)); 780ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 856ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 933ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 1, 1, 1)); 989ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 1064ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 1140ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 1262es.Consume(new ProjectStartedEventArgs("ps1", null, "fname1", "", null, null)); 1267es.Consume(new ProjectStartedEventArgs("ps2", null, "fname2", "", null, null)); 1303es.Consume(new ProjectStartedEventArgs("ps1", null, "fname1", "", null, null)); 1318es.Consume(new ProjectStartedEventArgs("ps2", null, "fname2", "", null, null)); 2135ProjectStartedEventArgs project1Started = new ProjectStartedEventArgs(1, null, null, "p", "t", null, null, new BuildEventContext(BuildEventContext.InvalidNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)); 2162ProjectStartedEventArgs project2Started = new ProjectStartedEventArgs(2, null, null, "p2", "t2", null, null, project1Started.BuildEventContext); 2281ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, messsage1.BuildEventContext); 2313ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context); 2343ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context); 2347ProjectStartedEventArgs project2 = new ProjectStartedEventArgs(2, "Hello,", "HI", "None", "Build", null, null, context2); 2411ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context);
Microsoft.Build.Framework.UnitTests (18)
CustomEventArgSerialization_Tests.cs (8)
589ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, propertyList, null, new BuildEventContext(7, 8, 9, 10)); 598ProjectStartedEventArgs newGenericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 653ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, null, null, new BuildEventContext(7, 8, 9, 10)); 662ProjectStartedEventArgs newGenericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 670genericEvent = new ProjectStartedEventArgs(-1, string.Empty, string.Empty, string.Empty, string.Empty, null, null, null); 679newGenericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 687genericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 696newGenericEvent = new ProjectStartedEventArgs(4, "Something", "Something", "Something", null, null, null, null);
EventArgs_Tests.cs (1)
76ProjectStartedEventArgs startedEvent = new ProjectStartedEventArgs(-1, "Message", "HELP", "File", "Targets", null, null, parentBuildEventContext);
ProjectStartedEventArgs_Tests.cs (9)
31s_baseProjectStartedEvent = new ProjectStartedEventArgs(1, "Message", "HelpKeyword", "ProjecFile", "TargetNames", null, null, parentBuildEventContext); 43projectStartedEvent = new ProjectStartedEventArgs("Message", "HelpKeyword", "ProjecFile", "TargetNames", null, null); 44projectStartedEvent = new ProjectStartedEventArgs("Message", "HelpKeyword", "ProjecFile", "TargetNames", null, null, DateTime.Now); 45projectStartedEvent = new ProjectStartedEventArgs(1, "Message", "HelpKeyword", "ProjecFile", "TargetNames", null, null, null); 46projectStartedEvent = new ProjectStartedEventArgs(1, "Message", "HelpKeyword", "ProjecFile", "TargetNames", null, null, null, DateTime.Now); 47projectStartedEvent = new ProjectStartedEventArgs(null, null, null, null, null, null); 48projectStartedEvent = new ProjectStartedEventArgs(null, null, null, null, null, null, DateTime.Now); 49projectStartedEvent = new ProjectStartedEventArgs(1, null, null, null, null, null, null, null); 50projectStartedEvent = new ProjectStartedEventArgs(1, null, null, null, null, null, null, null, DateTime.Now);
MSBuild (1)
LogMessagePacketBase.cs (1)
628LoggingEventType.ProjectStartedEvent => new ProjectStartedEventArgs(null, null, null, null, null, null),
MSBuildTaskHost (1)
LogMessagePacketBase.cs (1)
628LoggingEventType.ProjectStartedEvent => new ProjectStartedEventArgs(null, null, null, null, null, null),
117 references to ProjectStartedEventArgs
Microsoft.Build (48)
BackEnd\BuildManager\BuildManager.cs (1)
2866private void OnProjectStarted(object sender, ProjectStartedEventArgs e)
BackEnd\Components\Logging\EventSourceSink.cs (3)
166/// instead of <see cref="ProjectStartedEventArgs"/> 247case ProjectStartedEventArgs projectStartedEvent: 248ArgsHandler<ProjectStartedEventArgs> projectStartedFollowUp = args => RaiseEvent(args, args => StatusEventRaised?.Invoke(null, args), RaiseAnyEvent);
BackEnd\Components\Logging\ILoggingService.cs (4)
209/// or/and <see cref="ProjectStartedEventArgs"/>? 214/// Indicates whether properties and items should be logged on <see cref="ProjectStartedEventArgs"/>. 558void LogProjectStarted(ProjectStartedEventArgs args); 560ProjectStartedEventArgs CreateProjectStarted(
BackEnd\Components\Logging\LoggingService.cs (6)
92private static Lazy<PropertyInfo> s_projectStartedEventArgsGlobalProperties = new Lazy<PropertyInfo>(() => typeof(ProjectStartedEventArgs).GetProperty("GlobalProperties", BindingFlags.Public | BindingFlags.Instance), LazyThreadSafetyMode.PublicationOnly); 101private static Lazy<PropertyInfo> s_projectStartedEventArgsToolsVersion = new Lazy<PropertyInfo>(() => typeof(ProjectStartedEventArgs).GetProperty("ToolsVersion", BindingFlags.Public | BindingFlags.Instance), LazyThreadSafetyMode.PublicationOnly); 1346if (loggingPacket.NodeBuildEvent.Value.Value is ProjectStartedEventArgs projectStartedEventArgs && _configCache.Value != null) 1670if (buildEventArgs is ProjectStartedEventArgs projectStartedEvent) 1902ProjectStartedEventArgs startedEventArgs = args as ProjectStartedEventArgs;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
501var args = CreateProjectStarted(nodeBuildEventContext, 517public void LogProjectStarted(ProjectStartedEventArgs buildEvent) 522public ProjectStartedEventArgs CreateProjectStarted( 583var buildEvent = new ProjectStartedEventArgs(
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
61(ProjectStartedEventArgs arg, ProjectLoggingContext ctx) = CreateProjectLoggingContext(requestEntry); 66internal (ProjectStartedEventArgs, ProjectLoggingContext) CreateProjectLoggingContext(BuildRequestEntry requestEntry)
BackEnd\Components\Logging\ProjectLoggingContext.cs (5)
78public static (ProjectStartedEventArgs, ProjectLoggingContext) CreateLoggingContext( 81ProjectStartedEventArgs args = CreateProjectStarted( 99ProjectStartedEventArgs projectStarted) 165ProjectStartedEventArgs args = CreateProjectStarted( 183private static ProjectStartedEventArgs CreateProjectStarted(
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1274(ProjectStartedEventArgs args, ProjectLoggingContext ctx) = _nodeLoggingContext.CreateProjectLoggingContext(_requestEntry);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (3)
35{ typeof(ProjectStartedEventArgs), (BuildEventArgs e) => HandleProjectStartedRequest((ProjectStartedEventArgs)e) }, 99private void HandleProjectStartedRequest(ProjectStartedEventArgs eventArgs)
BuildCheck\Infrastructure\BuildCheckForwardingLogger.cs (1)
38typeof(ProjectStartedEventArgs),
Definition\ProjectCollection.cs (1)
2348private void ProjectStartedHandler(object sender, ProjectStartedEventArgs e)
Logging\BaseConsoleLogger.cs (1)
1049public abstract void ProjectStartedHandler(object sender, ProjectStartedEventArgs e);
Logging\BinaryLogger\BinaryLogger.cs (1)
392else if (e is ProjectStartedEventArgs projectArgs)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
762var e = new ProjectStartedEventArgs(
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
214case ProjectStartedEventArgs projectStarted: return Write(projectStarted); 407private BinaryLogRecordKind Write(ProjectStartedEventArgs e)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
129else if (buildEvent is ProjectStartedEventArgs projectStartedEventArgs)
Logging\BuildEventArgsExtensions.cs (4)
12/// <see cref="ProjectEvaluationFinishedEventArgs"/> and <see cref="ProjectStartedEventArgs"/> 27this ProjectStartedEventArgs eventArgs) 53this ProjectStartedEventArgs eventArgs) 62this ProjectStartedEventArgs eventArgs, string typeName)
Logging\ConsoleLogger.cs (1)
406public void ProjectStartedHandler(object sender, ProjectStartedEventArgs e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
512public override void ProjectStartedHandler(object sender, ProjectStartedEventArgs e)
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
42internal void AddProjectStartedEvent(ProjectStartedEventArgs e, bool requireTimestamp) 394internal ProjectStartedEventMinimumFields(int projectKey, int entryPointKey, ProjectStartedEventArgs startedEvent, ProjectStartedEventMinimumFields parentProjectStartedEvent, bool requireTimeStamp)
Logging\SerialConsoleLogger.cs (1)
224public override void ProjectStartedHandler(object sender, ProjectStartedEventArgs e)
LogMessagePacketBase.cs (2)
79/// Event is a <see cref="ProjectStartedEventArgs"/>. 698else if (eventType == typeof(ProjectStartedEventArgs))
Microsoft.Build.CommandLine.UnitTests (3)
TerminalLogger_Tests.cs (3)
134private ProjectStartedEventArgs MakeProjectStartedEventArgs(string projectFile, string targetNames = "Build") 664ProjectStartedEventArgs pse = MakeProjectStartedEventArgs(_projectFile, "Build"); 677ProjectStartedEventArgs pse2 = MakeProjectStartedEventArgs(_projectFile, "Build");
Microsoft.Build.Engine.UnitTests (37)
BackEnd\BuildManager_Tests.cs (5)
209_logger.AllBuildEvents.OfType<ProjectStartedEventArgs>() 720ProjectStartedEventArgs projectStartedEvent = _logger.ProjectStartedEvents[0]; 790ProjectStartedEventArgs projectStartedEvent = _logger.ProjectStartedEvents[1]; 842ProjectStartedEventArgs projectStartedEvent = _logger.ProjectStartedEvents[0]; 939ProjectStartedEventArgs projectStartedEvent = _logger.ProjectStartedEvents[0];
BackEnd\EventSourceSink_Tests.cs (3)
615private void Source_ProjectStarted(object sender, ProjectStartedEventArgs e) 780private static ProjectStartedEventArgs s_projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null); 967internal static ProjectStartedEventArgs ProjectStarted
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1685ProjectStartedEventArgs buildEvent = new ProjectStartedEventArgs( 1696Assert.True(((ProjectStartedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent));
BackEnd\MockLoggingService.cs (2)
553public void LogProjectStarted(ProjectStartedEventArgs args) 556public ProjectStartedEventArgs CreateProjectStarted(
BackEnd\NodePackets_Tests.cs (1)
60ProjectStartedEventArgs projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null);
BuildEventArgsSerialization_Tests.cs (2)
154var args = new ProjectStartedEventArgs( 167Roundtrip<ProjectStartedEventArgs>(args,
ConfigureableForwardingLogger_Tests.cs (1)
31private readonly ProjectStartedEventArgs _projectStarted = new ProjectStartedEventArgs(-1, "message", "help", "ProjectFile", "targetNames", null, null, null);
ConsoleLogger_Tests.cs (16)
162List<ProjectStartedEventArgs> projectStartedEvents = mockLogger.ProjectStartedEvents; 494ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, null, null, "p", null, null, null, buildEventContext); 727ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 1, 1, 1)); 780ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 856ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 933ProjectStartedEventArgs pse = new ProjectStartedEventArgs(1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 1, 1, 1)); 989ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 1064ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 1140ProjectStartedEventArgs pse = new ProjectStartedEventArgs(-1, "ps", null, "fname", "", null, null, new BuildEventContext(1, 2, 3, 4)); 2135ProjectStartedEventArgs project1Started = new ProjectStartedEventArgs(1, null, null, "p", "t", null, null, new BuildEventContext(BuildEventContext.InvalidNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)); 2162ProjectStartedEventArgs project2Started = new ProjectStartedEventArgs(2, null, null, "p2", "t2", null, null, project1Started.BuildEventContext); 2281ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, messsage1.BuildEventContext); 2313ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context); 2343ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context); 2347ProjectStartedEventArgs project2 = new ProjectStartedEventArgs(2, "Hello,", "HI", "None", "Build", null, null, context2); 2411ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, context);
Graph\IsolateProjects_Tests.cs (5)
238logger.AllBuildEvents.OfType<ProjectStartedEventArgs>().Count().ShouldBe(3); 260logger.AllBuildEvents.OfType<ProjectStartedEventArgs>().Count().ShouldBe(3); 355rootLogger.AllBuildEvents.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2); 356declaredReferenceLogger.AllBuildEvents.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2); 387logger.AllBuildEvents.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2);
Microsoft.Build.Framework (2)
IEventSource.cs (1)
48public delegate void ProjectStartedEventHandler(object sender, ProjectStartedEventArgs e);
IEventSource4.cs (1)
17/// instead of <see cref="ProjectStartedEventArgs"/>.
Microsoft.Build.Framework.UnitTests (9)
CustomEventArgSerialization_Tests.cs (6)
589ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, propertyList, null, new BuildEventContext(7, 8, 9, 10)); 598ProjectStartedEventArgs newGenericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 653ProjectStartedEventArgs genericEvent = new ProjectStartedEventArgs(8, "Message", "HelpKeyword", "ProjectFile", null, null, null, new BuildEventContext(7, 8, 9, 10)); 662ProjectStartedEventArgs newGenericEvent = new ProjectStartedEventArgs(-1, null, null, null, null, null, null, null); 706private static void VerifyProjectStartedEvent(ProjectStartedEventArgs genericEvent, ProjectStartedEventArgs newGenericEvent)
EventArgs_Tests.cs (1)
76ProjectStartedEventArgs startedEvent = new ProjectStartedEventArgs(-1, "Message", "HELP", "File", "Targets", null, null, parentBuildEventContext);
ProjectStartedEventArgs_Tests.cs (2)
23private static ProjectStartedEventArgs s_baseProjectStartedEvent; 40ProjectStartedEventArgs projectStartedEvent = new ProjectStartedEventArgs2();
Microsoft.Build.UnitTests.Shared (5)
BuildEventArgsExtension.cs (2)
214public static bool IsEquivalent(ProjectStartedEventArgs args, ProjectStartedEventArgs other)
MockLogger.cs (3)
99public List<ProjectStartedEventArgs> ProjectStartedEvents { get; } = new List<ProjectStartedEventArgs>(); 345case ProjectStartedEventArgs startedEventArgs:
Microsoft.Build.Utilities.Core (3)
MuxLogger.cs (3)
138/// instead of <see cref="ProjectStartedEventArgs"/>? 305private void ProjectStarted(object sender, ProjectStartedEventArgs e) 845private void RaiseProjectStartedEvent(object sender, ProjectStartedEventArgs buildEvent)
Microsoft.Build.Utilities.UnitTests (1)
MuxLogger_Tests.cs (1)
400private void ProjectStarted(object sender, ProjectStartedEventArgs e) => _projectStartedEvent.Set();
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
238private void OnProjectStarted(object sender, ProjectStartedEventArgs e)
MSBuild (2)
LogMessagePacketBase.cs (1)
698else if (eventType == typeof(ProjectStartedEventArgs))
TerminalLogger\TerminalLogger.cs (1)
483private void ProjectStarted(object sender, ProjectStartedEventArgs e)
MSBuildTaskHost (1)
LogMessagePacketBase.cs (1)
698else if (eventType == typeof(ProjectStartedEventArgs))
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
106private void HandleProjectStarted(object sender, ProjectStartedEventArgs e)
XmlFileLogger (4)
ObjectModel\Build.cs (2)
183public void AddProject(ProjectStartedEventArgs projectStartedEventArgs) 213public Project GetOrAddProject(int projectId, ProjectStartedEventArgs projectStartedEventArgs = null, Project parentProject = null)
ObjectModel\Project.cs (2)
37public Project(int projectId, ProjectStartedEventArgs e, PropertyBag parentPropertyBag) 118public void TryUpdate(ProjectStartedEventArgs projectStartedEventArgs)