From 5c509f5611a45bdf9d252b88605537bd28f24a35 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 2 Oct 2022 19:37:55 -0700 Subject: 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 --- src/libs/WixToolset.Versioning/WixVersionLabel.cs | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/libs/WixToolset.Versioning/WixVersionLabel.cs (limited to 'src/libs/WixToolset.Versioning/WixVersionLabel.cs') 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 @@ +// 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. + +namespace WixToolset.Versioning +{ + /// + /// Label in a WixVersion. + /// + public class WixVersionLabel + { + /// + /// Creates a string only version label. + /// + /// String value for version label. + public WixVersionLabel(string label) + { + this.Label = label; + } + + /// + /// Creates a string version label with numeric value. + /// + /// String value for version label. + /// Numeric value for the version label. + public WixVersionLabel(string label, uint? numeric) + { + this.Label = label; + this.Numeric = numeric; + } + + /// + /// Gets the string label value. + /// + public string Label { get; set; } + + /// + /// Gets the optional numeric label value. + /// + public uint? Numeric { get; set; } + } +} -- cgit v1.2.3-55-g6feb