diff options
-rw-r--r-- | src/wix/wix/Program.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wix/wix/Program.cs b/src/wix/wix/Program.cs index e4ee7ba1..8e422124 100644 --- a/src/wix/wix/Program.cs +++ b/src/wix/wix/Program.cs | |||
@@ -29,6 +29,11 @@ namespace WixToolset.Tools | |||
29 | [MTAThread] | 29 | [MTAThread] |
30 | public static async Task<int> Main(string[] args) | 30 | public static async Task<int> Main(string[] args) |
31 | { | 31 | { |
32 | if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) | ||
33 | { | ||
34 | Console.WriteLine("wix.exe : warning WIX0000: The WiX Toolset only supports Windows. If you would like to help bring WiX to other platforms, join us at https://wixtoolset.org. All behavior after this point is undefined."); | ||
35 | } | ||
36 | |||
32 | var cts = new CancellationTokenSource(); | 37 | var cts = new CancellationTokenSource(); |
33 | var listener = new ConsoleMessageListener("WIX", "wix.exe"); | 38 | var listener = new ConsoleMessageListener("WIX", "wix.exe"); |
34 | 39 | ||