tom-englert/Wax

Undefined preprocessor variable '$(var.LedControl.TargetDir)'

Closed this issue · 2 comments

Hello,
I have just installed Wix 3.11.1 and Wix Toolset Visual Studio 2017 Extension and Wax 1.4.1788 from Visual Studio Marketplace.

I have then follow your instructions but the build fails with and error
Undefined preprocessor variable '$(var.LedControl.TargetDir)'

It seems like the File Mappings are a bit strange (or probably I'm doing something wrong)
After clicking on + for each file I get a number of defines in Project.wxs
This is what it looks like in Wix Setup Editor
FileMappings

This is whats added to the Project.wxs
Product_wxs

As you can hopefully see there are some variables used that isn't defined.
LedControl
Contracts
Data
LighterWrapper
Configuration
DCLog
Profile

These are all referenced projects!

How would I fix this?

See https://wixtoolset.org/documentation/manual/v3/votive/votive_project_references.html
Usually Wax should have added project references for all these projects. This seem to have failed in your case, so just add them manually.

I saw this same issue with the newest release. I had to revert to an older version to get things to work properly.