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