cake-build / cake

:cake: Cake (C# Make) is a cross platform build automation system.
https://cakebuild.net
MIT License
3.91k stars 729 forks source link

Broken heat.exe in package WiX with version=3.11.1 #2441

Open techtim opened 5 years ago

techtim commented 5 years ago

What You Are Seeing?

Broken heat.exe in package WiX with version=3.11.1

heat.exe : error HEAT0001 : An error occurred loading a configuration file: The parameter 'exePath' is invalid.

What is Expected?

Creation of wxs file

What version of Cake are you using?

0.32.1

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

No

How Did You Get This To Happen? (Steps to Reproduce)

Tested in two projects one netcoreapp2.2, another netcoreapp2.1 (https://github.com/wieslawsoltes/Core2D) In "Core2D\src\Core2D.UI.Avalonia"

Output Log

Preparing to run build script...
Running build script...
heat.exe : error HEAT0001 : An error occurred loading a configuration file: The parameter 'exePath' is invalid.
Parameter name: exePath

Exception Type: System.Configuration.ConfigurationErrorsException

Stack Trace:
   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
   at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)
   at System.Configuration.ClientConfigurationHost.OpenExeConfiguration(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath)
   at System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath, Boolean preLoad)
   at Microsoft.Tools.WindowsInstallerXml.AppCommon.ReadConfiguration(StringCollection extensions)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(String[] args)
techtim commented 5 years ago

got same error running .\tools\WiX.3.11.1\tools\heat.exe , tried other versions with the same result, other *.exe works

techtim commented 5 years ago

Broke only on local machine, on CI everything is fine. Solved this by installing Wix3.11 , adding its bin to environment path and deleting heat.exe from Cakes tools Wix folder