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