[wix-users] Light.exe running when no changes
phill.hogland at rimage.com
Tue Nov 29 06:53:46 PST 2016
FYI - I came across this issue when using the WixTagExtension and I think there are a couple of other known scenarios:
In my situation I resolved to take the rebuild hit for most projects (or not use the WixTagExtension in the situations where the rebuild created a problem).
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Scott Langham <Scott.Langham at appsense.com>
Sent: Tuesday, November 29, 2016 4:06:25 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Light.exe running when no changes
Hi, does anybody have any thoughts that could help me get past this.
I've got a WiX project which is supposed to build incrementally. But, every time I build it Light.exe runs.
It seems that some tracking files are created in an intermediate folder called obj\x86\Debug. One file "MyProj.wixproj.BindContentsFileListnull.txt" contains a list of references to files that are in the Temp folder, here's one line from that file:
When the solution is built, the build log (in verbose mode) says:
Building target "Link" completely.
Input file "C:\Users\MyUser\AppData\Local\Temp\fkzirn0a\cab_2_ConditionsInstaller\0" does not exist.
I believe because that file is missing, MsBuild decides that it should link again. These are temp files, so it seems sensible that they would disappear. After every build, the list of files in the BindContentsFileListnull.txt changes to point at the same files in a new sub-folder of the Temp dir.
Other wix projects I have seem fine and don't keep rebuilding.
How can I fix this one?
The version of light.exe is: 3.10.2516.0
Oh, and I've found a build flag LeaveTemporaryFiles. If I set that to true incremental building works ok, but the temporary files (about 40Mb) are not cleaned up. This isn't really acceptable though as on build servers we have problems with the disk filling up as temporary files keep appearing. We rely on a nightly script that cleans them up. If these files are needed, it seems like they should be in the intermediate folder and not the temp folder, but I don't see any option to redirect them?
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users