I'm trying to harvest different folders in my *.wixproj file. But
HeatDirectory task is only harvesting last HarvestDirectory target. What I'm
missing here?
Here is my code segment:
<ItemGroup>
<Compile Include="Components.wxs">
<Link>Components.wxs</Link>
</Compile>
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
<HarvestDirectory
Include="$(SolutionDir)\WebApplication2\bin\$(Configuration)">
<AutogenerateGuids>true</AutogenerateGuids>
<ComponentGroupName>SimpleWebAppGroup</ComponentGroupName>
<DirectoryRefId>INSTALLFOLDER</DirectoryRefId>
<SuppressCom>true</SuppressCom>
<SuppressRegistry>true</SuppressRegistry>
<PreprocessorVariable>var.SourceDir</PreprocessorVariable>
<Visible>false</Visible>
</HarvestDirectory>
<HarvestDirectory Include="D:\testing\TTSVN\Program
Files\TortoiseSVN\Common\TortoiseOverlays">
<AutogenerateGuids>true</AutogenerateGuids>
<ComponentGroupName>SVNOverLays</ComponentGroupName>
<DirectoryRefId>PROGFILES</DirectoryRefId>
<SuppressCom>true</SuppressCom>
<SuppressRegistry>true</SuppressRegistry>
<PreprocessorVariable>var.SourceDir</PreprocessorVariable>
<Visible>false</Visible>
</HarvestDirectory>
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<Target Name="BeforeBuild">
<HeatDirectory NoLogo="$(HarvestDirectoryNoLogo)"
SuppressAllWarnings="$(HarvestDirectorySuppressAllWarnings)"
SuppressSpecificWarnings="$(HarvestDirectorySuppressSpecificWarnings)"
ToolPath="$(WixToolPath)"
TreatWarningsAsErrors="$(HarvestDirectoryTreatWarningsAsErrors)"
TreatSpecificWarningsAsErrors="$(HarvestDirectoryTreatSpecificWarningsAsErrors)"
VerboseOutput="$(HarvestDirectoryVerboseOutput)"
AutogenerateGuids="$(HarvestDirectoryAutogenerateGuids)"
GenerateGuidsNow="$(HarvestDirectoryGenerateGuidsNow)"
OutputFile="Components.wxs"
SuppressFragments="$(HarvestDirectorySuppressFragments)"
SuppressUniqueIds="true"
Transforms="%(HarvestDirectory.Transforms)"
Directory="@(HarvestDirectory)"
ComponentGroupName="%(HarvestDirectory.ComponentGroupName)"
DirectoryRefId="%(HarvestDirectory.DirectoryRefId)"
KeepEmptyDirectories="false"
PreprocessorVariable="%(HarvestDirectory.PreprocessorVariable)"
SuppressCom="%(HarvestDirectory.SuppressCom)"
SuppressRegistry="%(HarvestDirectory.SuppressRegistry)"
SuppressRootDirectory="$(HarvestDirectorySuppressRootDirectory)"
>
</HeatDirectory>
</Target>
If I omit HeatDirectory task, it would definitely not updating
Component.wxs. I didn't find any example showing the use of HarvestDirectory
with HeatDirectory task. While Wix documentation
<http://wixtoolset.org/documentation/manual/v3/msbuild/target_reference/harvestdirectory.html>
shows that HarvestDirectory target passes HarvestDirectory items to the
HeatDirectory task to generate authoring from a file.
Any help would be really appreciated.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/HarvestDirectory-target-for-multiple-directories-tp7596917.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Slashdot TV. Video for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users