use AssemblyAppVersion for Client

This commit is contained in:
2024-09-07 09:30:13 +02:00
parent f453e85956
commit f6219c0aa8
3 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using Pilz.Extensions;
using System.Reflection; using System.Reflection;
namespace ModpackUpdater.Apps.Client; namespace ModpackUpdater.Apps.Client;
@@ -23,7 +24,7 @@ public class AppUpdater
try try
{ {
var appVersion = Assembly.GetExecutingAssembly().GetName().Version; var appVersion = Assembly.GetExecutingAssembly().GetAppVersion().Version;
var result = await httpClient.GetStringAsync(UPDATE_URL); var result = await httpClient.GetStringAsync(UPDATE_URL);
info = JsonConvert.DeserializeObject<UpdateInfo>(result); info = JsonConvert.DeserializeObject<UpdateInfo>(result);

View File

@@ -8,7 +8,6 @@
<AssemblyName>Minecraft Modpack Updater</AssemblyName> <AssemblyName>Minecraft Modpack Updater</AssemblyName>
<ImplicitUsings>true</ImplicitUsings> <ImplicitUsings>true</ImplicitUsings>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>1.5.2.2</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,8 +1,10 @@
using ModpackUpdater.Manager; using ModpackUpdater.Manager;
using Newtonsoft.Json; using Newtonsoft.Json;
using Pilz;
using Pilz.Configuration; using Pilz.Configuration;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Telerik.WinControls;
[assembly: AssemblyAppVersion("1.5.2.2")]
namespace ModpackUpdater.Apps.Client; namespace ModpackUpdater.Apps.Client;