-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMLVScanVersions.cs
More file actions
40 lines (34 loc) · 1.38 KB
/
MLVScanVersions.cs
File metadata and controls
40 lines (34 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace MLVScan;
/// <summary>
/// Centralized version constants for MLVScan schema and core library.
/// CoreVersion is sourced from the core library's declared version constant so it remains stable
/// even when MLVScan.Core is merged into a loader assembly.
/// </summary>
public static class MLVScanVersions
{
internal const string DeclaredCoreVersion = "1.4.0";
/// <summary>
/// The JSON schema version (semver).
/// This defines the structure of scan result output.
/// </summary>
public const string SchemaVersion = "1.2.0";
/// <summary>
/// The MLVScan.Core library version (semver).
/// Sourced from the core library's declared compatibility version.
/// </summary>
public static string CoreVersion => DeclaredCoreVersion;
/// <summary>
/// Gets the full version string for the core library.
/// </summary>
[Obsolete("Use the CoreVersion property instead. Removed in v2.0.")]
public static string GetCoreVersion() => CoreVersion;
/// <summary>
/// Gets the full user-facing version string for the core library.
/// </summary>
public static string GetVersionString() => $"MLVScan.Core v{CoreVersion}";
/// <summary>
/// Gets the schema version string.
/// </summary>
[Obsolete("Use the SchemaVersion property instead. Removed in v2.0.")]
public static string GetSchemaVersion() => SchemaVersion;
}