Fix VoloNugetPackagesVersionUpdater

pull/2521/head
Halil İbrahim Kalkan 5 years ago
parent 76d742683a
commit 7049453fba

@ -56,9 +56,6 @@ namespace Volo.Abp.Cli.ProjectModification
doc.LoadXml(content);
var packageId = package.Attributes["Include"].Value;
var packageVersion = SemanticVersion.Parse(versionAttribute.Value);
var latestVersion = await _nuGetService.GetLatestVersionOrNullAsync(packageId, includePreviews).ConfigureAwait(false);
var packageNodeList = doc.SelectNodes("/Project/ItemGroup/PackageReference[starts-with(@Include, 'Volo.')]");
if (packageNodeList != null)
@ -77,7 +74,7 @@ namespace Volo.Abp.Cli.ProjectModification
Logger.LogDebug("Checking package: \"{0}\" - Current version: {1}", packageId, packageVersion);
var latestVersion = await _nuGetService.GetLatestVersionOrNullAsync(packageId, includePreviews);
var latestVersion = await _nuGetService.GetLatestVersionOrNullAsync(packageId, includePreviews).ConfigureAwait(false);
if (latestVersion != null && packageVersion < latestVersion)
{

Loading…
Cancel
Save