.NET Framework 3.5: After some debugging the solution was to install the .NET Framework 3.5.
- WiX 3.x has a build-dependency requiring this version.
- WiX 4.x requires .NET Core and Framework 4+.
Procedure:
- Hold Windows Key and Tap R. Type:
appwiz.cpl
and press Enter.
- Left pane, click "Turn Windows Features On / Off".
- Tick / enable: ".NET Framework 3.5".
- Run Windows Update (!) . If you can. To check for security updates.
- On Windows 10:
- Hold Windows Key and Tap R.
- Type:
ms-settings:windowsupdate
and press Enter.
- Click "Check for updates".
Now you should be able to build your WiX projects.
Or talk to tech support if you are in a managed environment. They should have a ready-made package for this .NET runtime, unless the runtime itself is prohibited from use.
Links:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…