Bugfix to avoid VS2022 crash.
MODIFY
WalletWasabi.WindowsInstaller/WalletWasabi.WindowsInstaller.wixproj
WalletWasabi.WindowsInstaller/WalletWasabi.WindowsInstaller.wixproj
<DefineConstants>BuildVersion=%(AssemblyVersion.Version);BasePath=..\WalletWasabi.Fluent.Desktop\bin\dist\win7-x64</DefineConstants>
</PropertyGroup>
<!-- Harvest file components from publish folder. -->
- <HeatDirectory OutputFile="ComponentsGenerated.wxs" DirectoryRefId="INSTALLFOLDER" ComponentGroupName="PublishedComponents" SuppressCom="true" Directory="..\WalletWasabi.Fluent.Desktop\bin\dist\win7-x64" SuppressFragments="true" SuppressRegistry="true" SuppressRootDirectory="true" AutoGenerateGuids="false" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" PreprocessorVariable="var.BasePath" />
+ <!-- See https://github.com/wixtoolset/issues/issues/6636#issuecomment-984886136 for the reason why RunAsSeparateProcess="True" was added. -->
+ <HeatDirectory RunAsSeparateProcess="True" OutputFile="ComponentsGenerated.wxs" DirectoryRefId="INSTALLFOLDER" ComponentGroupName="PublishedComponents" SuppressCom="true" Directory="..\WalletWasabi.Fluent.Desktop\bin\dist\win7-x64" SuppressFragments="true" SuppressRegistry="true" SuppressRootDirectory="true" AutoGenerateGuids="false" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" PreprocessorVariable="var.BasePath" />
</Target>
<Target Name="AfterBuild">
</Target>

Bugfix to avoid VS2022 crash.