How Can I add BuildMessage(s) in custom BuildActivity?
[BuildActivity(HostEnvironmentOption.Agent)]
public sealed class InvokeDotNetReactor : CodeActivity
{
[RequiredArgument]
public InArgument<string> SourcesDirectory { get; set; }
protected override void Execute(CodeActivityContext context)
{
...
BuildMessage bm = new BuildMessage()
{
Importance = BuildMessageImportance.High,
Message = "Hello From Custom TFS Build Activity"
};
}
}
}
For WorklowActivity there is a special WorkflowInvoker...
Thank's a lot.
CodeActivityContext context
i only have a funcction called Track which takesSystem.Activities.Tracking.CustomTrackingRecord
– Agonistic