After upgrading from WixToolset 4.0.1 to 6.0.1 we try to replace the old heat configuration in the .wixproj files with the recommended advanced harvesting. here is an example of the old config:
<!--Harvest Java Begin -->
<ItemGroup>
<HarvestDirectory Include="bin/Debug/Ressources/java">
<ComponentGroupName>JavaComponentGroup</ComponentGroupName>
<SuppressRootDirectory>true</SuppressRootDirectory>
<KeepEmptyDirectories>true</KeepEmptyDirectories>
<DirectoryRefId>JavaDir</DirectoryRefId>
<PreprocessorVariable>var.javares</PreprocessorVariable>
<Transforms>$(SolutionDir)SymmetriXCentral\JavaWxsTransform.xslt</Transforms>
<SuppressRegistry>true</SuppressRegistry>
</HarvestDirectory>
<BindPath Include="bin/Debug/Ressources/java" />
</ItemGroup>
<PropertyGroup>
<!-- <HarvestDirectorySuppressFragments>true</HarvestDirectorySuppressFragments> -->
<HarvestDirectoryGenerateGuidsNow>true</HarvestDirectoryGenerateGuidsNow>
<HarvestDirectoryAutogenerateGuids>false</HarvestDirectoryAutogenerateGuids>
<HarvestDirectoryTreatWarningsAsErrors>false</HarvestDirectoryTreatWarningsAsErrors>
</PropertyGroup>
<!--Harvest Java End -->
<DefineConstants>Debug;javares=bin\Debug\Ressources\java;ProductVersion=1.0.0.0</DefineConstants>
<PackageReference Include="WixToolset.Heat" Version="6.0.1" />
Can the old configuration be mapped 1:1 with the new harvesting? At first glance, I don't see that even remotely possible. The HarvestFolder element does not have similar attributes or child elements. I looked here: https://docs.firegiant.com/firegiant/schema/buildtools/harvestfolder/#attributes