Typically Wix# compiler is capable of finding WiX installation even without relying on WIXSHARP_WIXDIR variable. Though if this for whatever reason is not happening using VS templates is preferably a better option to start the troubleshooting with.
This is what you can do.
Let me know it it worked for you.
This is what you can do.
- Create a fresh project from "WixSharp Setup" template.
- In package management console execute
install-package WixSharp
- In package management console execute
install-package WixSharp.wix.bin
- In the code assign
Compiler.WixLocation
to the location of the WiX bin (either relative or absolute)
//DON'T FORGET to execute "install-package wixsharp" in the package manager console Compiler.WixLocation = @"..\packages\WixSharp.wix.bin.3.10.1\tools\bin";