harman_kardon
harman_kardon

Reputation: 1717

Solution/Project name variable in TFS Build 2010

When creating a new build definition in TFS 2010 we specifiy a project or solution to build (Under the 'Required -> Items to Build' section in the 'Process' section of the definition.

Is there any way to get hold of the name of the solution being built in the Workflow scope? I.e. is the there a variable available with this information inside that I can pass into a custom code activity elsewhere within the work flow?

Upvotes: 4

Views: 2112

Answers (1)

Nick Nieslanik
Nick Nieslanik

Reputation: 4458

If you open the build workflow and tunnel down into Compile and Test, you'll see a For Each Project loop scope that shows the workflow variable assignment of BuildSettings.ProjectsToBuild as serverBuildProjectItem in an out of the box workflow. There's a task within the sub-sequence that translates that serverItem to a local path containing the proj file.

Upvotes: 6

Related Questions