I currently have a WIX 3.5 project within VS2010 which has a number of project references. One of the projects referenced (ProjectA) is configured to NOT build within the solution configuration (set via the Solution Configuration Manager). I won't go into the reason that ProjectA is not built but the basic requirement is that I need to reference a file from the ProjectDir of ProjectA (i.e. there is no reference to TargetDir). Therefore for the purposes of this post please assume that I must NOT compile ProjectA.
When building within VS2010 everything works fine and the Solution Configuration is respected (i.e. ProjectA is never actually compiled but the project reference works as intended). However when building the solution through TeamBuild, the WIX2010 targets (specifically ResolveProjectReferences) insists on compiling ALL projects referenced. I have found comments in the WIX targets (ResolveProjectReferences) suggesting that if building through the IDE just gather build outputs (i.e. it assumes all projects have already been built), however if being built directly from the command line (and TeamBuild) build all referenced projects. Therefore my basic question is there a way in which I can suppress the compilation of ProjectA when running within TeamBuild. I have looked at things like DoNotHarvest etc but to no avail. This behavior has only arisen since the introduction of the Wix2010 targets. Therefore I suspect it may be a subtle change to ResolveProjectReferences (e.g. I have spotted a check for $(BuildingSolutionFile) that no longer exist in the 2010 version) but do not want modify that file for obvious reasons. I know how to achieve the requirement mentioned above without using a project reference to ProjectA, but that would involve some rework when migrating to VS2010.Therefore any guidance on the specific issue described above would be greatly appreciated. ----------------------------------------------------------------------------------------------------- Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 327000. Telephone: 0870 600 5000 Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Lloyds TSB Bank plc, Lloyds TSB Scotland plc, Bank of Scotland plc and Cheltenham & Gloucester plc are authorised and regulated by the Financial Services Authority. Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc. HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 218813. Telephone: 0870 600 5000 Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555 This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded. ============================================================================== ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users