chrisglein / artificial-chat

2 stars 1 forks source link

Show app version in About page #72

Closed chrisglein closed 1 year ago

chrisglein commented 1 year ago

Summary

Something like this:

    public string GetAppVersion()
    {

        Package package = Package.Current;
        PackageId packageId = package.Id;
        PackageVersion version = packageId.Version;

        return "Version " + string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);

    }
chrisglein commented 1 year ago

Would just be able to use this: https://github.com/tessus/react-native-version-info. It supports Windows... but the old version of RNW. Needs to be patched: https://github.com/tessus/react-native-version-info/blob/master/windows/RNVersionInfo/RNVersionInfoModule.cs