[#35] Installer: Fix WIX version detection

This commit is contained in:
2024-02-23 18:31:20 +01:00
parent 8031654e86
commit 06a095a199
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ namespace Elwig {
}
protected override async void OnStartup(StartupEventArgs evt) {
Version = typeof(App).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Split("+")[0] ?? "0.0.0";
Version = typeof(App).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Split('+')[0] ?? "0.0.0";
try {
await AppDbUpdater.CheckDb();

View File

@ -20,7 +20,7 @@
<Task>
<Using Namespace="System.Diagnostics" />
<Code Type="Fragment" Language="cs"><![CDATA[
this.Version = FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion;
this.Version = FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion.Split('+')[0];
]]></Code>
</Task>
</UsingTask>