IBuildEngine 接口

定义

此接口公开任务创作所需的生成引擎的功能。This interface exposes functionality on the build engine that is required for task authoring.

public interface class IBuildEngine
public interface IBuildEngine
type IBuildEngine = interface
Public Interface IBuildEngine
派生

属性

ColumnNumberOfTaskNode

检索任务节点在调用该任务的项目文件内的行号。Retrieves the line number of the task node within the project file that called it.

ContinueOnError

如果对项目文件中的此特定任务将 ContinueOnError 标志设置为 true,则返回 true。Returns true if the ContinueOnError flag was set to true for this particular task in the project file.

LineNumberOfTaskNode

检索任务节点在调用该任务的项目文件内的行号。Retrieves the line number of the task node within the project file that called it.

ProjectFileOfTaskNode

返回包含对此任务的调用的项目文件的完整路径。Returns the full path to the project file that contained the call to this task.

方法

BuildProjectFile(String, String[], IDictionary, IDictionary)

此方法允许任务启动对特定项目文件的生成。This method allows tasks to initiate a build on a particular project file. 如果生成成功,则在返回指定目标的任何) (输出。If the build is successful, the outputs (if any) of the specified targets are returned.

LogCustomEvent(CustomBuildEventArgs)

允许任务向所有已注册的记录器引发自定义事件。Allows tasks to raise custom events to all registered loggers. 生成引擎可能会对事件执行一些筛选或预处理,然后再对其进行调度。The build engine may perform some filtering or pre-processing on the events, before dispatching them.

LogErrorEvent(BuildErrorEventArgs)

允许任务向所有已注册的记录器引发错误事件。Allows tasks to raise error events to all registered loggers. 生成引擎可能会对事件执行一些筛选或预处理,然后再对其进行调度。The build engine may perform some filtering or pre-processing on the events, before dispatching them.

LogMessageEvent(BuildMessageEventArgs)

允许任务向所有已注册的记录器引发消息事件。Allows tasks to raise message events to all registered loggers. 生成引擎可能会对事件执行一些筛选或预处理,然后再对其进行调度。The build engine may perform some filtering or pre-processing on the events, before dispatching them.

LogWarningEvent(BuildWarningEventArgs)

允许任务向所有已注册的记录器引发警告事件。Allows tasks to raise warning events to all registered loggers. 生成引擎可能会对事件执行一些筛选或预处理,然后再对其进行调度。The build engine may perform some filtering or pre-processing on the events, before dispatching them.

适用于