EventSourceExtensions.HandleTargetFinished Method

Definition

Helper method ensuring single deduplicated subscription to the TargetFinished event.

C#
public static void HandleTargetFinished(this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.TargetFinishedEventHandler handler);

Parameters

eventSource
IEventSource
handler
TargetFinishedEventHandler

Handler to the event. If this handler is already subscribed, single subscription will be ensured.

Applies to

Produk Versi
MSBuild 17
MSBuild (.NET Core) 17