This commit is contained in:
Pilzinsel64
2025-12-09 09:58:41 +01:00
parent c2d13876f6
commit 528c97094c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -5,7 +5,7 @@
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>annotations</Nullable>
<Version>2.7.3</Version>
<Version>2.7.4</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">