Can TFSBuild run different targets the way MSBuild can
I am new to TFSBuild and now have a basic, automated build working for my project.
The next step is to be able to add a couple of targets to the project file and run those at different schedules. It may be that one of the targets builds the project in Debug mode and the other builds it in Release mode.
In MSBuild, I could do this by adding the "/t:" switch, followed by the name of the Target.
Can I do this with TFSBuild?
Perhaps I am barking up the wrong tree and would be better to create more Build Types.
My set up is that I have Team VSS on one server and a seperate Build Server with Team Services installed.
Thanks in advance for your help,
Gordon
Thanks or that response, it confirms my suspicions.
I would like to have some form of switch to perform an automated ClickOnce publication and to further amend a couple of keys within the Application.Config file depending on the destination of the build.
Do you think it makes sense to use TFSBuild to build the project on the Build Server and then use MSBuild to do the ClickOnce and App.Config work?
Regards,
Gordon
That could certainly work. Do you want the additional logic to happen immediately for certain builds, or do you want this logic to happen after some human intervention and decision-making? If the latter, I would certainly suggest doing the additional logic outside of your Team Build. If the former, it would make sense to me to set up two different build types, one of which contains the additional logic.
-Aaron
I would be happy for it all to be automated.
I am currently having trouble understanding the relationship between TFSBuild and MSBuild. From what I have now read TFSBuild runs MSBuild during the process.
How can I tellTFSBuild to run MSBuild in Publish mode and pass in the Publishing Location?
Appologies for my ignorance but it seems difficult to follow this process without drowning in XML.
Regards,
Gordon
You'll need to manually edit TfsBuild.proj, which is the MSBuild project file Team Build uses to drive the build process. Look for the SolutionToBuild item group - there should be some inline documentation in the XML which explains how to get ClickOnce going. Basically, for your ClickOnce projects you'll create a SolutionToPublish item group that looks just like the SolutionToBuild item group. There is no GUI support for this in v1.
-Aaron