Wrong references locations and missing references.
Closed this issue · 12 comments
When using the Wix Setup Editor, if project A that refences Project B. It will include those other files to the list in the set up.
I have a runtimeconfig.json that is present here From Project B but it is being map to Project A, which is the wrong folder so I will get the error saying that it can not find it when trying to build.
Also, I having missing references, that would need to be manually added, but my current solution houses 20+ projects that are all needed, and adding one by one is not really feasible.
If a references b, and the file is marked as content and copy local, it should be also available as output of a.
I have no idea what you mean by missing references
As of now it is doing C:/../ProjectA/runtimeconfig.json , instead of doing C:/../ProjectB/runtimeconfig.json which where the files is located at.
I can see only black stripes
Please provide a sample project where this behavior can be reproduceed
ok can do
https://github.com/Hitchnt/WixDemo
Here is a sample project on my machine I have a total of 40+ items in the editor picked up vs the 130+ in the editor
There is some invalid define in the Product.wxs
: <?define Project2_TargetDir=$(var.Project2.TargetDir)?>
When I remove it, everything works fine.
Now I see what you mean, Wax is designed to add only the files marked as "CopyLocal" - which in the new projects are only the files directly referenced in code, not the transitive dependencies - so the concept of this tool does no longer apply to projects that don't target NetFramework.
To get everything I would recommend to use the Heat utility that comes with WiX.
Ah ok I understand now, thank You very much