#1
|
|||
|
|||
Call Stack
I would like to be able to get a callstack (as a string) for the current step that's being executed.
On a high level what I'm trying to do is the following. I'm integrating Visual Build with Team Foundation build by calling Visual build script (command line) from TFS build custom step. I've implemented a way to update my TFS build step message so it shows current Visual Build step name and index. |
#2
|
|||
|
|||
It's not explicitly supported, but the undocumented CallStack property of the Builder component does return an array of strings in the form:
<step type>;<step index> for each step in the stack. http://www.kinook.com/VisBuildPro/Ma...peproperty.htm http://www.kinook.com/VisBuildPro/Ma...psproperty.htm http://www.kinook.com/VisBuildPro/Ma...emproperty.htm |
#3
|
|||
|
|||
When I try to access an element of Builder.CallStack I get (Object not a collection: 'Builder.CallStack') (see attached script)
|
#4
|
|||
|
|||
The return value is not accessible from script. You should be able to access it from a custom action written in C# or VB.NET.
http://www.kinook.com/VisBuildPro/Ma...rdefaction.htm |
#5
|
|||
|
|||
That is actually how I update the TFS build step through a com object written in c# so your suggestion works great for me.
Thanks |
Thread Tools | |
Display Modes | Rate This Thread |
|
|