GetAppVersion uses assembly version if empty
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user