protected override async Task <bool> DetermineCurrentVersion() { if (SkipPkgUtilVersionCheck) { return(await base.DetermineCurrentVersion()); } var runner = new PkgutilRunner(Context.Instance); Version ver = await GetVersion(echoError : true); if (ver == null) { return(false); } CurrentVersion = ver.ToString(); return(true); }
async Task <Version> GetVersion(bool echoError) { var runner = new PkgutilRunner(Context.Instance); return(await runner.GetPackageVersion(PackageId, echoError : echoError)); }