Christian

Can you check if TFS build use msbuild and if they do you may set a
property to over-ride the Outdir so that it would run something like:

Msbuild yoursolution.sln /p:OutDir=newpath to build the project. This
will compile all the projects and make sure $(OutPutPath) variable has
same value (i.e. newpath) whenever its referenced from any of the
projects in solution at anytime.

Regards
Rohit


-----Original Message-----
From: Christian McArdle [mailto:cmcar...@sdl.com] 
Sent: Friday, March 26, 2010 3:03 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem using Wix3 in TFS Build.

I'm getting trouble with light using Wix3 with TFS Build.

The basic problem is that TFS build redirects $(OutputPath) to its own
location. This is fine and looking at the log and the command parameters
sent to light, the msi/msm files will be written there. All well and
good. The problem is that light.exe still looks for the .dll files that
it intends to package up in the non-redirected solution output
directory. How can I get it to look in the right place?

A excerpt from the .wixproj file:

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Release|x86' ">
    <OutputPath>$(SolutionDir)$(Configuration)\</OutputPath>
 
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
    <LinkerAdditionalOptions>-b $(OutputPath)
-v</LinkerAdditionalOptions>
    <CompilerAdditionalOptions>
    </CompilerAdditionalOptions>
  </PropertyGroup>

Note that the output path is correctly redirected by TFS Build. However,
the <LinkerAdditionalOptions> expands $(OutputPath) to mean
$(SolutionDir)$(Configuration) and not the new value for $(OutputPath)
provided by TFS Build.

A typical log line for the call to light.exe is:

C:\Program Files (x86)\Windows Installer XML v3\bin\Light.exe
-cultures:null
-out D:\SDLX\SDLX_2010_Core\Binaries\Win32\Release\SDLXUserInterface.msm
-pdbout
D:\SDLX\SDLX_2010_Core\Binaries\Win32\Release\SDLXUserInterface.wixpdb
-b D:\SDLX\SDLX_2010_Core\Sources\Source\solutions\Everything\Release\
-v
obj\Release\Binaries.wixobj obj\Release\MergeModule.wixobj

What magic incantation can I use to fix this so that the -b line reads

-b D:\SDLX\SDLX_2010_Core\Binaries\Win32\Release\ -v

It all builds fine from the Desktop.

Christian.


</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial"  size="2" "><a href = "http://www.sdl.com";
style="color:005740; font-weight: bold">www.sdl.com</a>
<BR>
<BR>
<font face="arial"  size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
SL6 7DY, UK.
</font>



------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

=======
Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to