Skip to content

Commit 1e46ac1

Browse files
authored
v2.6.1 Enumeration update (#25)
* Update MtconnectTranspiler.csproj * Added enum values
1 parent 56718da commit 1e46ac1

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

MtconnectTranspiler/Contracts/MTConnectHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class MTConnectHelper
2323
/// <summary>
2424
/// Lookup table for each released version of MTConnect and the respective GitHub tags in the SysML model repository.
2525
/// </summary>
26-
/// <remarks>TODO: Keep this dictionary up-to-date with each release. <see href="https://api.github.com/repos/mtconnect/mtconnect_sysml_model/releases"/>.</remarks>
26+
// TODO: Keep this dictionary up-to-date with each release. <see href="https://api.github.com/repos/mtconnect/mtconnect_sysml_model/releases"/>.
2727
public static Dictionary<MTConnectVersion, string> VersionGitTags { get; } = new Dictionary<MTConnectVersion, string>()
2828
{
2929
{ MTConnectVersion.v1_0_1, "v1.5" },
@@ -41,6 +41,7 @@ public static class MTConnectHelper
4141
{ MTConnectVersion.v2_3, "v2.3" },
4242
{ MTConnectVersion.v2_4, "v2.4" },
4343
{ MTConnectVersion.v2_5, "v2.5" },
44+
{ MTConnectVersion.v2_6, "v2.6" },
4445
};
4546

4647
/// <summary>

MtconnectTranspiler/Contracts/MTConnectVersion.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/// <summary>
44
/// Options for released versions of MTConnect. See also <seealso cref="SemanticVersions.Versions"/> for semantic structures and release dates
55
/// </summary>
6+
// TODO: Keep this enum up-to-date with each release.
67
public enum MTConnectVersion
78
{
89
/// <summary>
@@ -112,6 +113,14 @@ public enum MTConnectVersion
112113
/// <summary>
113114
/// Refers to Version 2.5.1 of MTConnect
114115
/// </summary>
115-
v2_5_1
116+
v2_5_1,
117+
/// <summary>
118+
/// Refers to Version 2.6.0 of MTConnect
119+
/// </summary>
120+
v2_6,
121+
/// <summary>
122+
/// Refers to Version 2.6.1 of MTConnect
123+
/// </summary>
124+
v2_6_1
116125
}
117126
}

MtconnectTranspiler/Contracts/SemanticVersions.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using static System.Net.WebRequestMethods;
34

45
namespace MtconnectTranspiler.Contracts
56
{
@@ -9,8 +10,9 @@ namespace MtconnectTranspiler.Contracts
910
public static class SemanticVersions
1011
{
1112
/// <summary>
12-
/// Collection of semantic versions of the MTConnect Standard
13+
/// Collection of semantic versions of the MTConnect Standard. Release date refers to the "Adoption" date listed on the projects site: <see href="https://projects.mtconnect.org/"/>
1314
/// </summary>
15+
// TODO: Keep this dictionary up-to-date with each release. Refer to "Adoption" date in the projects site: https://projects.mtconnect.org/
1416
public readonly static Dictionary<MTConnectVersion, SemanticVersion> Versions = new Dictionary<MTConnectVersion, SemanticVersion>()
1517
{
1618
{ MTConnectVersion.v1_0_1, new SemanticVersion(1, 0, 1, new DateTime(2009, 10, 02)) },
@@ -34,7 +36,14 @@ public static class SemanticVersions
3436
{ MTConnectVersion.v2_1_1, new SemanticVersion(2, 1, 1, new DateTime(2023, 01, 14)) },
3537
{ MTConnectVersion.v2_2, new SemanticVersion(2, 2, 0, new DateTime(2023, 07,26)) },
3638
{ MTConnectVersion.v2_2_1, new SemanticVersion(2, 2, 1, new DateTime(2023,07, 26)) },
37-
{ MTConnectVersion.v2_3, new SemanticVersion(2,3,0, new DateTime(2024, 02, 11)) }
39+
{ MTConnectVersion.v2_3, new SemanticVersion(2,3,0, new DateTime(2024, 02, 11)) },
40+
{ MTConnectVersion.v2_3_1, new SemanticVersion(2,3,1, new DateTime(2024, 02, 11)) },
41+
{ MTConnectVersion.v2_4, new SemanticVersion(2,4,0, new DateTime(2024, 09, 10)) },
42+
{ MTConnectVersion.v2_4_1, new SemanticVersion(2,4,1, new DateTime(2024, 09, 10)) },
43+
{ MTConnectVersion.v2_5, new SemanticVersion(2,5,0, new DateTime(2025, 02, 06)) },
44+
{ MTConnectVersion.v2_5_1, new SemanticVersion(2,5,1, new DateTime(2025, 02, 06)) },
45+
{ MTConnectVersion.v2_6, new SemanticVersion(2,6,0, new DateTime(2025, 09, 01)) },
46+
{ MTConnectVersion.v2_6_1, new SemanticVersion(2,6,1, new DateTime(2025, 09, 01)) }
3847
};
3948

4049
/// <summary>

MtconnectTranspiler/MtconnectTranspiler.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
88
<Title>MTConnect Transpiler</Title>
9-
<Version>2.6.0</Version>
9+
<Version>2.6.1</Version>
1010
<Authors>mtconnect, tbm0115</Authors>
1111
<Company>MTConnect Institute; TAMS;</Company>
1212
<Description>A library capable of parsing an XMI for the MTConnect Standard and passing it to an implemented transpiler.</Description>

0 commit comments

Comments
 (0)