Skip to content

Latest commit

 

History

History
94 lines (70 loc) · 5.63 KB

File metadata and controls

94 lines (70 loc) · 5.63 KB

NugetVersionChecker Changelog

[1.4.0] (2026-03-15)

Added

  • CurrentDirectory, StartupPath and AppName properties are added to NuGetVersionChecker class. These properties are used in NuGetVersionCheck() method to get current directory, startup path and application name for easier use of this method in console applications.
  • GetFilePath() method is added to NuGetVersionChecker class. This method is used in NuGetVersionCheck() method to get file path for .csproj file based on entry directory, startup path and application name.

[1.3.0] (2025-11-24)

Added

  • Null check for return package data in CheckVersionAsync(string path, bool includePrerelease) method. If it is null, return empty list of Packages.
  • Null check for return package data in CheckVersionAsync(List<string> pathList, bool includePrerelease) method. If it is null, return empty list of Packages.
  • Network availability check before making NuGet API calls in GetPackageFromNuGetAsync(string packageName, bool includePrerelease) method. If network is unavailable, it return empty Package.
  • Network availability check before making NuGet API calls in GetPackagesFromNuGetAsync(List<string> packageNameList, bool includePrerelease) method. If network is unavailable, it return empty list of Packages.

Changed

  • Updated NuGet.Protocol package to the 6.14.0 version.

[1.2.0] (2024-07-07)

Added

  • PackageEqualityComparer class is added into Package. It has Equal(Package x, Package y) and GetHashCode(Package obj) interface methods of IEqualityComparer<Package>.
  • CheckVersionAsync(List<string> pathList, bool includePrerelease) method is added. This method uses distinction before call GetPackagesFromNuGet(List<string> packageNameList) to get packages to compare their versions.

Changed

  • GetPackageFromNuGetAsync(string packageName) method now has optional parameter of includePrerelease which is set to false to indicate if prerelease is included for search.
  • GetPackagesFromNuGetAsync(List<string> packageNameList) method now has optional parameter of includePrerelease which is set to false to indicate if prerelease is included for search.
  • CheckVersionAsync(string path) method now has optional parameter of includePrerelease which is set to false to indicate if prerelease is included for search.

[1.1.0] (2024-06-24)

Added

  • Override method of ToString() for Package. It displays package name and version.

Changed

  • GetPackageFromNuGetAsync(string packageName) and GetPackagesFromNuGetAsync(List<string> packageNameList) methods are not using package.Identity.Id from IPackageSearchMetadata instead of requested package name when creating Package data for Name.
  • GetPackages(string path) now checks if path is null or empty before parsing with XmlDocument.Load() and returns empty list of Package data.
  • CheckVersionAsync(string path) now checks if path is null or empty and returns empty list of Package data.

[1.0.0] (2024-06-23)

Initial release

[1.0.0-rc] (2024-06-20)

Added

  • CheckVersionAsync(string path) method added. This method return packages with their names, versions and available to update as a list.

Changed

  • Minor performance improvements.
  • Package now has SemanticVersion instead of System.Version.
  • Package now has UpdateAvailable value to indicate newer version is available.
  • Package now has its third constructor. Package(string name, SemanticVersion version, bool updateAvailable).
  • Package(string name, Version versioon) is replaced with Package(string name, SemanticVersion version) due to change on Package.
  • GetPackages(string path) now try-catch mechanism when loading and parsing .csporj file with XmlDocument.
  • GetPackages(string path) method now has inner explanations line by line.

Deleted

  • GetPackageFromNuget(string packageName) method was marked as obsolote due to naming mistake and on this it is deleted.
  • GetPackagesFromNuget(List<string> packageNameList) method was marked as obsolote due to naming mistake and on this it is deleted.

[1.0.0-beta.2] (2024-06-14)

Added

  • Package now has Package() constructor among Package(string name, Version version)

Changed

  • GetPackageFromNugetAsync(string packageName) no longer throws exception when package or its versions are not found. It simple returns empty package.
  • GetPackagesFromNuGetAsync(List<string> packageNameList) no longer throws exception when one of package or its versions are not found. It simple returns a list of package.

[1.0.0-beta.1] (2024-06-09)

Added

  • GetPackageFromNuGetAsync(string packageName) method is added instead of now obsolote GetPackageFromNuget(string packageName) method.
  • GetPackagesFromNuGetAsync(List<string> packageNameList) method is added instead of now obsolote GetPackagesFromNuget(List<string> packageNameList) method.

Changed

  • After making a search among results, SingleOrDefault() is using instead of First(). Since search parameter has one as "take:", result can be only one. That's why Single()is better. SingleOrDefault() is used now due to wrong or not existing "packageName".

Deprecated

  • GetPackageFromNuget(string packageName) is obsolote now due to naming mistake. You can use GetPackageFromNuGetAsync(string packageName) instead.
  • GetPackagesFromNuget(List<string> pakcageNameList) is obsolote now due to naming mistake. You can use GetPackagesFromNuGetAsync(List<string> packageNameList) instead.

[1.0.0-beta] (2024-06-07)

Initial release.