Freigeben über


IBuildEngine2 Interface

Provides a way for task authors to use a subset of the functionality of the MSBuild engine.

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.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
Public Interface IBuildEngine2 _
    Inherits IBuildEngine
public interface IBuildEngine2 : IBuildEngine
public interface class IBuildEngine2 : IBuildEngine
type IBuildEngine2 =  
    interface 
        interface IBuildEngine 
    end
public interface IBuildEngine2 extends IBuildEngine

The IBuildEngine2 type exposes the following members.

Properties

  Name Description
Public property ColumnNumberOfTaskNode Gets the line number of the task node within the project file that called it.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. (Inherited from IBuildEngine.)
Public property ContinueOnError Returns true if the ContinueOnError flag was set to true for this particular task in the project file.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. (Inherited from IBuildEngine.)
Public property IsRunningMultipleNodes Returns whether the system is running in single- or multi-processor mode.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.
Public property LineNumberOfTaskNode Gets the line number of the task node within the project file that called it.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. (Inherited from IBuildEngine.)
Public property ProjectFileOfTaskNode Gets the full path to the project file that contained the call to this task.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. (Inherited from IBuildEngine.)

Top

Methods

  Name Description
Public method BuildProjectFile(String, array<String[], IDictionary, IDictionary) Initiates a build of a project file. If the build is successful, the outputs, if any, of the specified targets are returned.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. (Inherited from IBuildEngine.)
Public method BuildProjectFile(String, array<String[], IDictionary, IDictionary, String) Initiates a build of a project file. If the build is successful, the outputs of the specified targets are returned, if any exist.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.
Public method BuildProjectFilesInParallel Allows tasks to initiate parallel builds of the specified project files on systems with multiple processors or multiple core processors. If the builds are successful, the outputs of the specified targets are returned, if any exist.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.
Public method LogCustomEvent Raises a custom event to all registered loggers.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. (Inherited from IBuildEngine.)
Public method LogErrorEvent Raises an error event to all registered loggers.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. (Inherited from IBuildEngine.)
Public method LogMessageEvent Raises a message event to all registered loggers.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. (Inherited from IBuildEngine.)
Public method LogWarningEvent Raises a warning event to all registered loggers.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. (Inherited from IBuildEngine.)

Top

Remarks

IBuildEngine2 extends IBuildEngine, allowing you to build multiple project files in parallel on systems containing multiple processors, or processors with multiple cores.

See Also

Reference

Microsoft.Build.Framework Namespace