这是大约。一个有效的最小工作流 xaml 文件:
<Activity xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow">
<Sequence>
<mtbwa:WriteBuildMessage Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]"
Message="Test WriteBuildMessage Importance High"/>
</Sequence>
</Activity>
用于登录查看日志的默认 tfsbuild 详细程度是正常的,但这不会BuildMessageImportance.Normal
仅显示High
。
另一个问题是您必须在项目Process下的构建定义中单击构建过程模板的刷新按钮。
这是一个包含BuildVerbosity
属性的最小工作流示例。
<Activity xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow"
xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow"
xmlns:this="clr-namespace:TfsBuild"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="TfsBuild.Process"
this:Process.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Diagnostic]">
<x:Members>
<x:Property Name="Verbosity"
Type="InArgument(mtbw:BuildVerbosity)" />
</x:Members>
<Sequence>
<mtbwa:WriteBuildMessage Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.Low]"
Message="Test WriteBuildMessage Importance Low"/>
</Sequence>
</Activity>