NANT builds with BTDF 5.0/5.1

Topics: General Questions
Feb 6, 2014 at 5:08 PM
Is there any documentation on doing BTDF builds with NANT? Is it even possible? I have been doing automated builds in TFS, but It looks like I might need to switch to NANT if possible. I have zero experience with NANT so any advice would be appreciated. Thanks.
Coordinator
Feb 6, 2014 at 5:36 PM
The Deployment Framework for BizTalk was originally built on NAnt, but today the only way you can use NAnt with the Deployment Framework is to simply call MSBuild.exe from NAnt.

Thanks,
Tom
Feb 6, 2014 at 6:01 PM
I've used MSBuild for deploys, but never called it directly for builds.

Is it just the "<MSBuildPath>\MSBuild.exe" /p:<solutionConfiguration> /t:Installer "<pathToBTDFProj>" line from the BTDF documentation?

Do the individual BizTalk dlls (or the solution?) need to be built first?
Coordinator
Feb 7, 2014 at 4:50 AM
To build the BizTalk solution you can call MSBuild.exe /p:Configuration=Release /t:Rebuild MyBizTalkProject.sln (not tested, but should be correct or very close). After that is built you can build the BTDF MSI with a similar command line against the .btdfproj and /t:Installer.

Thanks,
Tom