Export (0) Print
Expand All

ProjectInstance.Build Method (String(), IEnumerable(Of ILogger), IEnumerable(Of ForwardingLoggerRecord), IDictionary(Of String, TargetResult))

Builds the given targets with the given target outputs and with the given loggers and remote loggers.

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

'Declaration
Public Function Build ( _
	targets As String(), _
	loggers As IEnumerable(Of ILogger), _
	remoteLoggers As IEnumerable(Of ForwardingLoggerRecord), _
	<OutAttribute> ByRef targetOutputs As IDictionary(Of String, TargetResult) _
) As Boolean

Parameters

targets
Type: System.String()

The targets to build. May be null.

loggers
Type: System.Collections.Generic.IEnumerable(Of ILogger)

The loggers to use for the build. May be null.

remoteLoggers
Type: System.Collections.Generic.IEnumerable(Of ForwardingLoggerRecord)

The remote loggers to use for the build. May be null.

targetOutputs
Type: System.Collections.Generic.IDictionary(Of String, TargetResult)

The target outputs.

Return Value

Type: System.Boolean
Returns true if the build succeeds; false otherwise.

Throws InvalidOperationException if any of the loggers supplied are already attached to the logging service.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft