From e75e022928d509733e5b2d7dc77a04cf689bb0e5 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sun, 20 Jun 2021 11:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BA=A7=E5=93=81=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub/VersionHostedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastGithub/VersionHostedService.cs b/FastGithub/VersionHostedService.cs index f9e6ea2..1d2cb81 100644 --- a/FastGithub/VersionHostedService.cs +++ b/FastGithub/VersionHostedService.cs @@ -42,7 +42,7 @@ namespace FastGithub { try { - var version = Assembly.GetEntryAssembly()?.GetName().Version; + var version = Assembly.GetEntryAssembly()?.GetCustomAttribute()?.InformationalVersion; if (version == null) { return;