aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r--src/WixToolset.Core/CommandLine/CommandLineOption.cs27
-rw-r--r--src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs4
2 files changed, 2 insertions, 29 deletions
diff --git a/src/WixToolset.Core/CommandLine/CommandLineOption.cs b/src/WixToolset.Core/CommandLine/CommandLineOption.cs
deleted file mode 100644
index 85a654bf..00000000
--- a/src/WixToolset.Core/CommandLine/CommandLineOption.cs
+++ /dev/null
@@ -1,27 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset
4{
5 /// <summary>
6 /// A command line option.
7 /// </summary>
8 public struct CommandLineOption
9 {
10 public string Option;
11 public string Description;
12 public int AdditionalArguments;
13
14 /// <summary>
15 /// Instantiates a new BuilderCommandLineOption.
16 /// </summary>
17 /// <param name="option">The option name.</param>
18 /// <param name="description">The description of the option.</param>
19 /// <param name="additionalArguments">Count of additional arguments to require after this switch.</param>
20 public CommandLineOption(string option, string description, int additionalArguments)
21 {
22 this.Option = option;
23 this.Description = description;
24 this.AdditionalArguments = additionalArguments;
25 }
26 }
27}
diff --git a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs
index 3b8011c4..bcbd6a67 100644
--- a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs
+++ b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs
@@ -86,7 +86,7 @@ namespace WixToolset.Core.ExtensibilityServices
86 // the use of open and closed parens inside variable names. Example: $(env.ProgramFiles(x86)) should resolve. 86 // the use of open and closed parens inside variable names. Example: $(env.ProgramFiles(x86)) should resolve.
87 if (result == null) 87 if (result == null)
88 { 88 {
89 result = this.GetVariableValue(context, function, false); 89 result = this.GetVariableValue(context, function, true);
90 } 90 }
91 91
92 return result; 92 return result;
@@ -403,7 +403,7 @@ namespace WixToolset.Core.ExtensibilityServices
403 } 403 }
404 else 404 else
405 { 405 {
406 result = this.GetVariableValue(context, subString, false); 406 result = this.GetVariableValue(context, subString, true);
407 } 407 }
408 408
409 if (null == result) 409 if (null == result)