diff options
author | Rob Mensching <rob@firegiant.com> | 2022-10-02 19:37:55 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-04 10:44:49 -0700 |
commit | 5c509f5611a45bdf9d252b88605537bd28f24a35 (patch) | |
tree | f2ac4c1509fe69f6489c56f257b59f4e346a51c7 /src/libs/WixToolset.Versioning/WixVersionLabel.cs | |
parent | e901e04cfb8f1b759903f41b5c8f2f91e3f877aa (diff) | |
download | wix-5c509f5611a45bdf9d252b88605537bd28f24a35.tar.gz wix-5c509f5611a45bdf9d252b88605537bd28f24a35.tar.bz2 wix-5c509f5611a45bdf9d252b88605537bd28f24a35.zip |
Move WixVersion to new WixToolset.Versioning package in libs segment
WixVersion is already used by the Core toolset but could also be
useful for bootstrapper applications parsing bundle versions. The
WixToolset.Data assembly contains a significant amount of data that
bloats its size that bootstrapper applications would never need.
Extracting WixVersion to its own assembly makes it much more
useable.
Fixes 6943
Diffstat (limited to 'src/libs/WixToolset.Versioning/WixVersionLabel.cs')
-rw-r--r-- | src/libs/WixToolset.Versioning/WixVersionLabel.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/libs/WixToolset.Versioning/WixVersionLabel.cs b/src/libs/WixToolset.Versioning/WixVersionLabel.cs new file mode 100644 index 00000000..c5dcb875 --- /dev/null +++ b/src/libs/WixToolset.Versioning/WixVersionLabel.cs | |||
@@ -0,0 +1,40 @@ | |||
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 | |||
3 | namespace WixToolset.Versioning | ||
4 | { | ||
5 | /// <summary> | ||
6 | /// Label in a <c>WixVersion</c>. | ||
7 | /// </summary> | ||
8 | public class WixVersionLabel | ||
9 | { | ||
10 | /// <summary> | ||
11 | /// Creates a string only version label. | ||
12 | /// </summary> | ||
13 | /// <param name="label">String value for version label.</param> | ||
14 | public WixVersionLabel(string label) | ||
15 | { | ||
16 | this.Label = label; | ||
17 | } | ||
18 | |||
19 | /// <summary> | ||
20 | /// Creates a string version label with numeric value. | ||
21 | /// </summary> | ||
22 | /// <param name="label">String value for version label.</param> | ||
23 | /// <param name="numeric">Numeric value for the version label.</param> | ||
24 | public WixVersionLabel(string label, uint? numeric) | ||
25 | { | ||
26 | this.Label = label; | ||
27 | this.Numeric = numeric; | ||
28 | } | ||
29 | |||
30 | /// <summary> | ||
31 | /// Gets the string label value. | ||
32 | /// </summary> | ||
33 | public string Label { get; set; } | ||
34 | |||
35 | /// <summary> | ||
36 | /// Gets the optional numeric label value. | ||
37 | /// </summary> | ||
38 | public uint? Numeric { get; set; } | ||
39 | } | ||
40 | } | ||