From 1cb859042736096a43928e770c73fbd7c6065da7 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Tue, 28 Aug 2018 17:11:38 -0400 Subject: Support warning suppression. --- src/WixToolset.Core/CommandLine/CommandLineParser.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/WixToolset.Core') diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs index d518931a..b0ad6cad 100644 --- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs +++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs @@ -144,7 +144,7 @@ namespace WixToolset.Core.CommandLine return true; case "outputtype": - outputType= parser.GetNextArgumentOrError(arg); + outputType = parser.GetNextArgumentOrError(arg); return true; case "nologo": @@ -164,6 +164,16 @@ namespace WixToolset.Core.CommandLine case "sval": // todo: implement return true; + + case "sw": + case "suppresswarning": + var warning = parser.GetNextArgumentOrError(arg); + if (!String.IsNullOrEmpty(warning)) + { + var warningNumber = Convert.ToInt32(warning); + this.Messaging.SuppressWarningMessage(warningNumber); + } + return true; } return false; -- cgit v1.2.3-55-g6feb