diff options
Diffstat (limited to 'src/WixToolset.Core/ExtensibilityServices')
| -rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs index 60726a02..215c7bc4 100644 --- a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |||
| @@ -154,10 +154,10 @@ namespace WixToolset.Core.ExtensibilityServices | |||
| 154 | 154 | ||
| 155 | public string GetVariableValue(IPreprocessContext context, string variable, bool allowMissingPrefix) | 155 | public string GetVariableValue(IPreprocessContext context, string variable, bool allowMissingPrefix) |
| 156 | { | 156 | { |
| 157 | // Strip the "$(" off the front. | 157 | // Strip the "$(" off the front and the ")" off the back. |
| 158 | if (variable.StartsWith("$(", StringComparison.Ordinal)) | 158 | if (variable.StartsWith("$(", StringComparison.Ordinal)) |
| 159 | { | 159 | { |
| 160 | variable = variable.Substring(2); | 160 | variable = variable.Substring(2, variable.Length - 3); |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | var parts = variable.Split(VariableSplitter, 2); | 163 | var parts = variable.Split(VariableSplitter, 2); |
