Best practices for build definitions or modifying the workflow template
-
Thursday, April 19, 2012 5:04 PM
Looking for some guidance on best way to compile/publish certain projects.
We have couple of console applications, web services etc - some of them are straightforward to compile, some have to be published(to generate .asmx and \bin folder) etc.
Some solutions have both, a console project(needs to be compiled) and a webservices project(needs to be published). In Visual Studio, you have an option to either 'Compile' or 'Publish' based on the project.
To accompilsh the same and yet have flexibility, do I create individual build definitions(to either Compile or Publish a certain project) or can I create one that encompasses all?
All Replies
-
Thursday, April 19, 2012 9:30 PM
If it one solution and the team develop in all projects, I will create one definition, let me tell you what my build definition that I have.
I have the following:
- Check-in Build definition for CI (Continues Integration)
- Nightly Build definition
- QA sprint delivery build definition
We are volunteers, if the reply help you mark it as your answer. thanks!!
Blog: http://mohamedradwan.wordpress.com
-
Friday, April 20, 2012 4:10 PM
Hello.
I think you misunderstood.
I need the ability and flexbility to create a build definition that will build a single solution and which requires me to either compile project A and pubish project B.
Project A and Project B resides within the same single solution.
Right now, I can either compile all projects or publish all projects within a single solution.
-
Friday, April 20, 2012 8:40 PM
I just didn't feel your situation so I just try to help you by telling you mine.We are volunteers, if the reply help you mark it as your answer. thanks!!
Blog: http://mohamedradwan.wordpress.com
-
Saturday, April 21, 2012 11:09 AM
Hello ,
You can create one build definition which will perform all activities . In my project i had similar kind of requirement where i had to publish couple of web Application & services at same time.
The best way to achieve this is to write your own custom activities . For writing custom activities visit http://www.ewaldhofman.nl/post/2010/04/29/Customize-Team-Build-2010-e28093-Part-4-Create-your-own-activity.aspx
Don`t forget to mark this as answer if this reply answers your question .
- Proposed As Answer by DMEHRO Friday, April 27, 2012 7:11 PM
-
Monday, April 23, 2012 6:25 AMModerator
Hi Tampaite,
Thank you for your post.
Seems your solution contain multiply projects, some console projects need compile, some web projects need publish. If I have misunderstood anything, please free feel to let me know.
If console projects and web projects do not have relation with each other, group them to different build definition may reduce the work.
If console projects and web projects do need contained in one solution, and use one build definition for the solution, you need to customize build activity.
Beyond the information DMEHRO provide, you can refer to following articles:
1. Team Foundation Build Activities
2. How to: Create an Activity
3. http://weblogs.asp.net/jdanforth/archive/2010/04/24/package-and-publish-web-sites-with-tfs-2010-build-server.aspxBest regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Edited by Lily_WuMicrosoft Contingent Staff, Moderator Monday, April 23, 2012 6:26 AM

