I am trying to use Invoke process to invoke an executable from my windows workflow in my TFS 2010 build. But when I am looking at the log file it is not logging any error. I did use WriteBuildMessage and WriteBuildwarning inside my invoke process activity. I also set the filename,workingdirectory etc in activity.
Can someone please point out why it is not logging?
You can do something like this:
In this case you have to ensure that Message
are set as follows:
With those parameters set as depicted, I catch what you seem to be after.
Furthermore, you can check in the Properties
of your InvokeProcess
:
Set the Result
into a string-variable and then set in a subsequent WriteBuildMessage
this string-variable to be the Message
. This way, you 'll additionally catch the return of your invoked process.
EDIT
Another common thing that you 've possibly overlooked is the BuildMessageImportance
: if it is not set as High
, messages do NOT appear under default Logging Verbosity (= Normal
). See here for some background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With