I want to extract values defined in an item group collection of TFSBuild.proj file in a C# application during a build . Can someone give me an idea as to how this can be done.
相关问题
- Getting error: File extension specified '.webt
- Using TFS command line tf.exe how can I copy a rep
- TFS Power tools Migrate doesn't actually migra
- What is the difference between tfpt scorch and tfp
- TFS 2017 Agent: and error occured while sending th
相关文章
- Is it possible to do a “destroy history” in TFS?
- How do I make a TeamCity build appear in the TFS B
- TFS vs. JIRA/Bamboo/SVN [closed]
- Why doesn't my .tfignore file ignore my packag
- Is it possible to create a docker container from T
- How to Move TFS 2010 Build Definition between Proj
- How to fix TF246017 The Team foundation server cou
- How to open TFS Power Tools - Alerts Explorer
You could use the Exec MSBuild task to call your C# application. In the command line you send, you could include the
@(ItemGroup)
and see how it is serialized to the app's parameter list.You could also consider authoring a custom MSBuild task instead, using your C# app, to work with that information. You could then have one of the public properties on your task be an array of task items, or an array of strings, etc., easy enough to provide through the standard MSBuild element syntax.
An application isn't executing when the TFSBuild.proj file is being executed, unless you're talking about an application not included in the build.
The only way I can think of would be to have a custom MSBuild task which you then pass all the variables into and you do your processing against them.