GetAppVersion uses assembly version if empty

This commit is contained in:
Pilzinsel64
2025-06-18 06:23:29 +02:00
parent d06ff5888c
commit 6a066415eb

View File

@@ -6,6 +6,6 @@ public static class AssemblyExtensions
{
public static AppVersion GetAppVersion(this Assembly @this)
{
return @this.GetCustomAttribute<AssemblyAppVersionAttribute>()?.Version ?? new();
return @this.GetCustomAttribute<AssemblyAppVersionAttribute>()?.Version ?? new(@this.GetName().Version);
}
}