使用产品版本比较

This commit is contained in:
xljiulang 2021-06-20 11:10:22 +08:00
parent 16c34fbc96
commit e75e022928

View File

@ -42,7 +42,7 @@ namespace FastGithub
{ {
try try
{ {
var version = Assembly.GetEntryAssembly()?.GetName().Version; var version = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
if (version == null) if (version == null)
{ {
return; return;