[#35] Installer: Fix WIX version detection
This commit is contained in:
@ -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();
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user