@joebigelow / wix-1 / commits / 0d3150d3

Warn when WiX is run on unsupported platforms

Closes 7267

Rob Mensching committed Mar 10, 2023 at 13:22 UTC 0d3150d3671e2441661593ffb0fb402f484f7ff6
1 file changed +5
src/wix/wix/Program.cs
+5
@@ -29,6 +29,11 @@ namespace WixToolset.Tools
29 [MTAThread]
30 public static async Task<int> Main(string[] args)
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 +
37 var cts = new CancellationTokenSource();
38 var listener = new ConsoleMessageListener("WIX", "wix.exe");
39