I have used HeatDirectory Tasks in several projects by creating a custom Target and adding it to the BeforeBuild DependsOnTargets list. But now I am trying to understand how to user the HarvestDirectory target. I added code like this to a wixproj file.
<ItemGroup> <HarvestDirectory Include="..\EDSsetup\EDSsetup\bin\$(Configuration)\"> <DirectoryRefId>INSTALLFOLDER</DirectoryRefId> <ComponentGroupName>EDSsetupGroup</ComponentGroupName> <PreprocessorVariable>EDSsetupOutputPath</PreprocessorVariable> <KeepEmptyDirectories>false</KeepEmptyDirectories> <SuppressCom>true</SuppressCom> <SuppressRootDirectory>true</SuppressRootDirectory> <SuppressRegistry>true</SuppressRegistry> <SuppressUniqueIds>true</SuppressUniqueIds> <VerboseOutput>true</VerboseOutput> <Visible>false</Visible> </HarvestDirectory> </ItemGroup> I actually tried many variations of the above starting with the sniped from the wix docs" http://wixtoolset.org/documentation/manual/v3/msbuild/target_reference/harvestdirectory.html Ironically a couple of days ago I had one variation of this "working" and a _Named.wxs file was created in the ..\obj\Release folder and automatically compiled into the setup. But I had not used the <Visible>false</Visible> and did not realize that hitting 'Remove' on the 'Debug' icon in my VS solution list deleted the ItemGroup I had authored. I should have been happy with what I trying to make additional changes. Now I cannot get back to a functioning setup. The log shows that the above code is imported, but it says that it is skipping the HarvestDirectory because the list is empty. Yet the path points at the output of a setup project which includes a bundle, msi packages, and external cabs. (At a macro level I an trying to create a build mechanism for collecting the wixpdbs related to the msi packages which are imported into a bundle.) Target "HarvestProjects" skipped, due to false condition; ( $(EnableProjectHarvesting) and ('@(HeatProject)' != '' or '@(HarvestProject)' != '') ) was evaluated as ( false and ('' != '' or '' != '') ). Target "GetHarvestDirectoryContent" in file "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets" from project "C:\Development\Installs\9.0_Installs\EDSsetup\EDSsetupFilesPkg\EDSsetupFilesPkg.wixproj" (target "HarvestDirectory" depends on it): Task "CreateItem" Task Parameter: Include= C:\Development\Installs\9.0_Installs\EDSsetup\EDSsetup\EDSsetup\bin\Release\\**\* ComponentGroupName=EDSsetupGroup DirectoryRefId=INSTALLFOLDER KeepEmptyDirectories=false PreprocessorVariable=EDSsetupOutputPath SuppressCom=true SuppressRegistry=true SuppressRootDirectory=true SuppressUniqueIds=true Transforms= VerboseOutput=true Visible=false Done executing task "CreateItem". Done building target "GetHarvestDirectoryContent" in project "EDSsetupFilesPkg.wixproj". Target "HarvestDirectory" in file "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets" from project "C:\Development\Installs\9.0_Installs\EDSsetup\EDSsetupFilesPkg\EDSsetupFilesPkg.wixproj" (target "Harvest" depends on it): Skipping target "HarvestDirectory" because it has no inputs. Though the target has declared its inputs, the input specification only references empty properties and/or empty item lists. Done building target "HarvestDirectory" in project "EDSsetupFilesPkg.wixproj". Target "HarvestFile" skipped, due to false condition; ( '@(HarvestFile)' != '' ) was evaluated as ( '' != '' ). Target "Harvest" in file "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets" from project "C:\Development\Installs\9.0_Installs\EDSsetup\EDSsetupFilesPkg\EDSsetupFilesPkg.wixproj" (target "CompileAndLink" depends on it): Done building target "Harvest" in project "EDSsetupFilesPkg.wixproj". I had also tried variations where I create an earlier ItemGroup and set FoldersToHarvest with multiple Include paths, and then used HarvestDirectory Include="@(FoldersToHarvest)" but that also resulted in skipping the actual harvest. Thanks for any assistance! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/HarvestDirectory-tp7597926.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users