Ghost1372

everything can be handy

UpdateHelper

We moved all namespaces into a single namespace. No matter which (WinUICommunity) library you use, the namespace is always as follows
For use in the Xaml:
xmlns:wuc="using:WinUICommunity"
For use in the Csharp:
using WinUICommunity;

you can use UpdateHelper for checking application updates from github release page

first you must create a new release tag in github repository, tag version must be in this format : 1.0.0.0
now we can check for update with github username and github repository

1
2
3
4
5
6
7
8
9
10
11
12
13
14
var ver = await UpdateHelper.CheckUpdateAsync("WinUICommunity", "WinUICommunity");
if(ver.IsExistNewVersion)
{
Debug.WriteLine(ver.ReleaseUrl);
Debug.WriteLine(ver.CreatedAt.ToString());
Debug.WriteLine(ver.PublishedAt.ToString());

//Asset is List so maybe there is more than one file you can use forech or increase index
Debug.WriteLine(ver.Assets[0].Url);
Debug.WriteLine(ver.IsPreRelease.ToString());
Debug.WriteLine(ver.Assets[0].Size.ToString());
Debug.WriteLine(ver.Version);
Debug.WriteLine(ver.Changelog);
}

Demo

you can run demo and see this feature.

0%