Прочитај на енглеском

Делите путем


FileLogger.Initialize Method

Definition

Initializes a file logger for a given build event or in a multiprocessor environment.

Overloads

Initialize(IEventSource)

Signs up the console file logger for all build events. This is the backward-compatible overload.

Initialize(IEventSource, Int32)

Multiproc aware initialization

Initialize(IEventSource)

Source:
FileLogger.cs

Signs up the console file logger for all build events. This is the backward-compatible overload.

C#
public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource);

Parameters

eventSource
IEventSource

Available events.

Applies to

MSBuild 17 и друге верзије
Производ Верзије
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

Initialize(IEventSource, Int32)

Source:
FileLogger.cs

Multiproc aware initialization

C#
public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource, int nodeCount);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource, int nodeCount);

Parameters

eventSource
IEventSource

The event source.

nodeCount
Int32

The node count.

Attributes

Applies to

MSBuild 17 и друге верзије
Производ Верзије
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17