diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-09 09:01:55 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-09-09 09:01:55 -0500 |
| commit | b36d8286b1c227782ad7cb4278cab32b6abc6168 (patch) | |
| tree | 09bfb2e7f3d454a5738f1874c091cac38a8e7174 /src/slskd/Program.cs | |
| parent | 3549cb7677f49de0b28d8b4a0b192b2e45a0fcee (diff) | |
| download | slskd-b36d8286b1c227782ad7cb4278cab32b6abc6168.tar.gz | |
force version to 0.0.0.0 if defaulted
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 4 |
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. |
