private async Task GetPackageDetailsAsync() { var versions = await PackageResolver.GetPackageVersionsAsync(); Version = versions.Last(); if (PackageResolver is IPackageResolverDownloadSize hasDownloadSize) { FileSize = await hasDownloadSize.GetDownloadFileSizeAsync(Version, new ReleaseMetadataVerificationInfo() { FolderPath = Path.GetTempPath() }); } Source = PackageResolver.GetType().Name; }