Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CoreCompile step using wix.exe does not include in parameters the .wxs files generated by heat.exe #7946

Closed
1 task done
0xAndre opened this issue Jan 4, 2024 · 2 comments
Labels

Comments

@0xAndre
Copy link

0xAndre commented Jan 4, 2024

WiX Version

4.0.3

.NET or MSBuild or Visual Studio Version

MSBuild version 17.7.2+d6990bcfa for .NET Framework

HeatWave Version

n/a?

Windows Version

Windows Server 2016 | Version 1607 OS Build 14393.6452

Repro Repo

No response

Repro Steps

image

In BeforeBuild step, 2 .wxs files (ServiceDesignerPackageFiles.wxs and CommonPackageFiles.wxs) are generated that do not exist initially in the folder. The files are successfully generated in BeforeBuild; however, in CoreCompile, this files are not passed in the parameters.

The CoreCompile step using wix.exe does not include in the parameters .wxs files generated by heat.exe when they are generated in the BeforeBuild.

image

If you try to compile again with the .wxs files already in the folder, wix.exe includes them in the parameters:

image

I tried adding a wait between BeforeBuild and CoreCompile in Setup.wixproj, thinking it could be a synchronization issue, but the problem persisted.

Workaround: I created ServiceDesignerPackageFiles.wxs and CommonPackageFiles.wxs empty. With this empty files created, the build was successful, and the .msi was generated. This leads me to believe that the empty files are not used, but rather the .wxs files generated by heat.exe.

I'm not sure if the bug might be in heat.exe, wix.exe, or another point that I am not aware of.

Actual Result

The .wxs files generated by heat.exe are not being passed in the parameters of wix.exe

Expected Result

The .wxs files generated by heat.exe need to be passed in the parameters of heat.exe

Acknowledgements

  • I acknowledge that this is a fully completed bug report. It is not a question or attempt to get help debugging my issue (because those should be sent to Discussions).
@0xAndre 0xAndre added the triage label Jan 4, 2024
@barnson
Copy link
Member

barnson commented Jan 4, 2024

This issue is unlikely to gain traction without a repro.

@barnson
Copy link
Member

barnson commented Jan 16, 2024

Your project needs to do the same kind of work that HarvestDirectory does to get generated names into the list of files to be compiled. Or just use HarvestDirectory and let it do the work.

@barnson barnson closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
@barnson barnson added notabug and removed triage labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants