From 0d3150d3671e2441661593ffb0fb402f484f7ff6 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 10 Mar 2023 13:22:58 -0800 Subject: Warn when WiX is run on unsupported platforms Closes 7267 --- src/wix/wix/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 [MTAThread] public static async Task Main(string[] args) { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + 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."); + } + var cts = new CancellationTokenSource(); var listener = new ConsoleMessageListener("WIX", "wix.exe"); -- cgit v1.2.3-55-g6feb