private void ModRepositoryUpdated() { var applicationData = ModRepository.Instance.ApplicationData; var cVer = Version.Parse($"{ThisAssembly.Git.SemVer.Major}.{ThisAssembly.Git.SemVer.Minor}.{ThisAssembly.Git.SemVer.Patch}"); if (applicationData != null && applicationData.LatestApplicationVersion > cVer) { App.RunInMainThread(() => { UpdateText.Visibility = Visibility.Visible; UpdateText.Text = $"Update to {applicationData.LatestApplicationVersion} available!\n{applicationData.UpdateText}"; }); } }
public ExiledLibrary(Assembly lib) { Library = lib; Version = Version.Parse(lib.GetCustomAttribute <AssemblyInformationalVersionAttribute>().InformationalVersion); }