Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/tools/WixTasks/WixToolTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ private void ExecuteToolThread(object parameters)
Assembly toolAssembly = Assembly.LoadFrom((string)pathAndArguments[0]);
this.exitCode = (int)toolAssembly.EntryPoint.Invoke(null, new object[] { pathAndArguments[1] });
}
catch (BadImageFormatException bife)
{
Log.LogError("Unable to load tool from path {0} due to architecture mismatch. Consider setting the RunAsSeparateProcess parameter to $(RunWixToolsOutOfProc).", bife.FileName);
this.exitCode = -1;
}
catch (FileNotFoundException fnfe)
{
Log.LogError("Unable to load tool from path {0}. Consider setting the ToolPath parameter to $(WixToolPath).", fnfe.FileName);
Expand Down