using System.Reflection; namespace Pilz.Extensions; public static class AssemblyExtensions { public static AppVersion GetAppVersion(this Assembly @this) { return @this.GetCustomAttribute()?.Version ?? new(@this.GetName().Version); } }