tom-englert/Wax

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.

image

image

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.

image

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.

image

As for the missing references, here is an example of what I am seeing. I have only 10 items that showing in the editor, but there are total of 14 with in the bin folder of project.

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.

image

I took out all 2 "define" and reran the editor , but as seen in the picture there more then half of the item missing. I could be looking at this wrong or something else. I updated the repo to only have one define which was generated by the editor ,

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