CaptureOutput MSBuild Property

Official Content
This documentation is valid for:

The CaptureOutput property is a generic attribute available in any GeneXus MSBuild task.

Syntax

CaptureOutput="true|false"

Description

When the property is enabled, you can get the complete MSBuild task output in a MSBuild variable to be processed programmatically.

Use the MSBuild output parameter, reference the TaskOutput parameter value (TaskParameter) and declare a variable to store the result (PropertyName). For example, if you want to use it with the OpenKnowledgeBase MSBuild Task and retrieve the result in the OpenOutput variable, use the following:

<OpenKnowledgeBase
  Directory="$(KBDirectory)" 
  TargetModelId="$(ModelId)"
  DatabaseUser="UserId"
  DatabasePassword="Password"
  CaptureOutput="true">
<Output TaskParameter="TaskOutput" PropertyName="OpenOutput" />
</OpenKnowledgeBase>

The option is available since GeneXus 15 Upgrade 5