aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2023-03-10 13:22:58 -0800
committerRob Mensching <rob@firegiant.com>2023-03-10 15:24:01 -0700
commit0d3150d3671e2441661593ffb0fb402f484f7ff6 (patch)
tree7410f4019439d6ece3e041837b164b2f0d8bdd5d
parent5abe137e6f563ea76a97c55f468d2d7620861937 (diff)
downloadwix-0d3150d3671e2441661593ffb0fb402f484f7ff6.tar.gz
wix-0d3150d3671e2441661593ffb0fb402f484f7ff6.tar.bz2
wix-0d3150d3671e2441661593ffb0fb402f484f7ff6.zip
Warn when WiX is run on unsupported platforms
Closes 7267
-rw-r--r--src/wix/wix/Program.cs5
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