diff options
author | Bob Arnson <bob@firegiant.com> | 2019-11-06 18:17:18 -0500 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2019-11-06 19:13:38 -0500 |
commit | 58cd3477c3ae3d7880991ee1651a862a45371e08 (patch) | |
tree | 933c6b44723e6d2d41208a5904b964fe91bf68c3 /src/WixToolset.Core | |
parent | 97a70bbc1b90cb26f8c77d83e703689d15d08761 (diff) | |
download | wix-58cd3477c3ae3d7880991ee1651a862a45371e08.tar.gz wix-58cd3477c3ae3d7880991ee1651a862a45371e08.tar.bz2 wix-58cd3477c3ae3d7880991ee1651a862a45371e08.zip |
Add preprocessor variables with WiX version info.
$(sys.WIXMAJORVERSION)
$(sys.WIXVERSION)
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs index dfee0046..60726a02 100644 --- a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |||
@@ -248,6 +248,12 @@ namespace WixToolset.Core.ExtensibilityServices | |||
248 | throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString()); | 248 | throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString()); |
249 | } | 249 | } |
250 | 250 | ||
251 | case "WIXMAJORVERSION": | ||
252 | return ThisAssembly.AssemblyFileVersion.Split('.')[0]; | ||
253 | |||
254 | case "WIXVERSION": | ||
255 | return ThisAssembly.AssemblyFileVersion; | ||
256 | |||
251 | default: | 257 | default: |
252 | return null; | 258 | return null; |
253 | } | 259 | } |