From 2428b564fd6d504f1bf5aeebc2f5d808768f002a Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Wed, 11 Jan 2023 18:24:51 +0900 Subject: [PATCH] Fix: Version numbers in UI appeared with a suffix zero x.x.x.0 instead of x.x.x (#4521) --- BTCPayServer/Services/BTCPayServerEnvironment.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Services/BTCPayServerEnvironment.cs b/BTCPayServer/Services/BTCPayServerEnvironment.cs index ad9f96c79..28c60e263 100644 --- a/BTCPayServer/Services/BTCPayServerEnvironment.cs +++ b/BTCPayServer/Services/BTCPayServerEnvironment.cs @@ -17,7 +17,7 @@ namespace BTCPayServer.Services readonly TorServices torServices; public BTCPayServerEnvironment(IWebHostEnvironment env, BTCPayNetworkProvider provider, TorServices torServices, BTCPayServerOptions opts) { - Version = typeof(BTCPayServerEnvironment).GetTypeInfo().Assembly.GetCustomAttribute().Version; + Version = typeof(BTCPayServerEnvironment).GetTypeInfo().Assembly.GetCustomAttribute().InformationalVersion; Commit = typeof(BTCPayServerEnvironment).GetTypeInfo().Assembly.GetCustomAttribute()?.ShortSHA; #if DEBUG Build = "Debug";