Skip to content

Commit

Permalink
Fix old packages version in update result.
Browse files Browse the repository at this point in the history
  • Loading branch information
torbacz committed Sep 6, 2024
1 parent 147ab2f commit bbb59c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DependencyUpdated.Projects.DotNet/DotNetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ private IReadOnlyCollection<UpdateResult> UpdateCsProj(string fullPath,
continue;
}

var oldPackageVersion = versionAttribute.Value;
versionAttribute.SetValue(newVersion.ToString());
results.Add(new UpdateResult(packageName, versionAttribute.Value, newVersion.ToString()));
results.Add(new UpdateResult(packageName, oldPackageVersion, newVersion.ToString()));
}

var settings = new XmlWriterSettings { OmitXmlDeclaration = true, Indent = true, };
Expand Down

0 comments on commit bbb59c4

Please sign in to comment.