diff --git a/Pilz/Extensions/AssemblyExtensions.cs b/Pilz/Extensions/AssemblyExtensions.cs index f575afd..026c2dc 100644 --- a/Pilz/Extensions/AssemblyExtensions.cs +++ b/Pilz/Extensions/AssemblyExtensions.cs @@ -6,6 +6,6 @@ public static class AssemblyExtensions { public static AppVersion GetAppVersion(this Assembly @this) { - return @this.GetCustomAttribute()?.Version ?? new(@this.GetName().Version); + return @this.GetCustomAttribute()?.Version ?? AppVersion.Parse(Assembly.GetEntryAssembly().GetCustomAttribute().InformationalVersion); } } diff --git a/Pilz/Pilz.csproj b/Pilz/Pilz.csproj index 7ed151d..8a48748 100644 --- a/Pilz/Pilz.csproj +++ b/Pilz/Pilz.csproj @@ -5,7 +5,7 @@ latest enable annotations - 2.7.3 + 2.7.4