From 989686d2fdb3b46ed3c411f03ebdcdeeb9f42e15 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 3 Oct 2018 14:01:55 -0700 Subject: Add better error message when wixnative.exe cannot be found --- src/WixToolset.Core.Native/WixNativeExe.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/WixToolset.Core.Native/WixNativeExe.cs b/src/WixToolset.Core.Native/WixNativeExe.cs index 92dcfdda..90ab0042 100644 --- a/src/WixToolset.Core.Native/WixNativeExe.cs +++ b/src/WixToolset.Core.Native/WixNativeExe.cs @@ -39,6 +39,11 @@ namespace WixToolset.Core.Native public IEnumerable Run() { + if (!File.Exists(PathToWixNativeExe)) + { + throw new FileNotFoundException($"Could not find internal piece of WiX Toolset at: {PathToWixNativeExe}", PathToWixNativeExe); + } + var wixNativeInfo = new ProcessStartInfo(PathToWixNativeExe, this.commandLine) { RedirectStandardInput = true, -- cgit v1.2.3-55-g6feb