diff options
| author | Bob Arnson <bob@firegiant.com> | 2019-11-10 18:19:36 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2019-11-10 18:31:56 -0500 |
| commit | df709d87c25945c10b9d29273dd90b6df6359a99 (patch) | |
| tree | cd4cfca3ce6f548988a35cf38b7e428e3600505e /src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |
| parent | e29c25090e26c8cca52232d580528840d1161b73 (diff) | |
| download | wix-df709d87c25945c10b9d29273dd90b6df6359a99.tar.gz wix-df709d87c25945c10b9d29273dd90b6df6359a99.tar.bz2 wix-df709d87c25945c10b9d29273dd90b6df6359a99.zip | |
Clean up upgrade properties; support <?ifdef $()?>
Diffstat (limited to 'src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs')
| -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); |
