2008-03-21

TFS 2008 Build with WiX 3 - Keeping it clean

Its a good practise to keep the Build Box as clean as posible, that is dont install 3rd party dependencies.

To begin with you need to add WiX 3 to your Source Control, most peaple seen to have a "tools" folder or the like.

When Wix has been added, all you need to do is override the MSBuild properties WiX uses.

Check out the TFSBuild.rsp file and add the following.

# This is a response file for MSBuild
# Add custom MSBuild command line options in this file
/property:WixTargetsPath=..\..\..\tools\WiX\bin\Wix.targets
/property:WixTasksPath=WixTasks.dll
/property:WixToolPath=C:\projects\MyProject\Sources\tools\WiX\bin\
/v:diag

The paths might need some tweaking to fit your needs.

No comments: