Share via


ProjectCollection.RegisterLoggers Method

Adds the given loggers to the collection of loggers used for builds of projects in this collection.

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Sub RegisterLoggers ( _
    loggers As IEnumerable(Of ILogger) _
)
public void RegisterLoggers(
    IEnumerable<ILogger> loggers
)
public:
void RegisterLoggers(
    IEnumerable<ILogger^>^ loggers
)
member RegisterLoggers : 
        loggers:IEnumerable<ILogger> -> unit
public function RegisterLoggers(
    loggers : IEnumerable<ILogger>
)

Parameters

  • loggers
    Type: IEnumerable<ILogger>

    The loggers to be added. May be null.

Remarks

Skips any logger objects that are already in the collection.

.NET Framework Security

See Also

Reference

ProjectCollection Class

Microsoft.Build.Evaluation Namespace