From 6a066415ebaf82ebdd209b2fe3bcd89d0dae9076 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Wed, 18 Jun 2025 06:23:29 +0200 Subject: [PATCH] GetAppVersion uses assembly version if empty --- Pilz/Extensions/AssemblyExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pilz/Extensions/AssemblyExtensions.cs b/Pilz/Extensions/AssemblyExtensions.cs index cd0adb5..f575afd 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(); + return @this.GetCustomAttribute()?.Version ?? new(@this.GetName().Version); } }