aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 529388a1..ec672f23 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -89,7 +89,7 @@ namespace slskd
/// <remarks>
/// Inaccurate when running locally.
/// </remarks>
- public static Version AssemblyVersion { get; } = Assembly.GetExecutingAssembly().GetName().Version;
+ public static Version AssemblyVersion { get; } = Assembly.GetExecutingAssembly().GetName().Version.Equals(new Version(1,0,0,0)) ? new Version(0, 0, 0, 0) : Assembly.GetExecutingAssembly().GetName().Version;
/// <summary>
/// Gets the informational version of the application, including the git sha at the latest commit.
@@ -97,7 +97,7 @@ namespace slskd
/// <remarks>
/// Inaccurate when running locally.
/// </remarks>
- public static string InformationalVersion { get; } = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
+ public static string InformationalVersion { get; } = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion == "1.0.0" ? "0.0.0" : Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
/// <summary>
/// Gets the unique Id of this application invocation.