From 0a078e422afac38598c026fed3d7abad582e1ddb Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 13 Jul 2018 15:30:21 -0700 Subject: Add PostParse() method of IExtensionCommandLine Fixes wixtoolset/issues#5850 --- src/WixToolset.Core/CommandLine/CommandLineParser.cs | 5 +++++ .../Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs index da0e979c..65aea1fc 100644 --- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs +++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs @@ -323,6 +323,11 @@ namespace WixToolset.Core.CommandLine } } + foreach (var extension in extensions) + { + extension.PostParse(); + } + return this; } diff --git a/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs b/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs index 0d0771f3..6f86e20d 100644 --- a/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs +++ b/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs @@ -33,6 +33,10 @@ namespace Example.Extension return false; } + public void PostParse() + { + } + public override string GetVariableValue(string prefix, string name) { if (prefix == "ex" && "test".Equals(name, StringComparison.OrdinalIgnoreCase)) -- cgit v1.2.3-55-g6feb