- 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.
- Updated NuGet.Protocol package to the 6.14.0 version.
PackageEqualityComparerclass is added intoPackage. It hasEqual(Package x, Package y)andGetHashCode(Package obj)interface methods ofIEqualityComparer<Package>.CheckVersionAsync(List<string> pathList, bool includePrerelease)method is added. This method uses distinction before callGetPackagesFromNuGet(List<string> packageNameList)to get packages to compare their versions.
GetPackageFromNuGetAsync(string packageName)method now has optional parameter ofincludePrereleasewhich is set to false to indicate if prerelease is included for search.GetPackagesFromNuGetAsync(List<string> packageNameList)method now has optional parameter ofincludePrereleasewhich is set to false to indicate if prerelease is included for search.CheckVersionAsync(string path)method now has optional parameter ofincludePrereleasewhich is set to false to indicate if prerelease is included for search.
- Override method of ToString() for
Package. It displays package name and version.
GetPackageFromNuGetAsync(string packageName)andGetPackagesFromNuGetAsync(List<string> packageNameList)methods are not usingpackage.Identity.IdfromIPackageSearchMetadatainstead of requested package name when creatingPackagedata forName.GetPackages(string path)now checks if path is null or empty before parsing withXmlDocument.Load()and returns empty list ofPackagedata.CheckVersionAsync(string path)now checks if path is null or empty and returns empty list ofPackagedata.
Initial release
CheckVersionAsync(string path)method added. This method return packages with their names, versions and available to update as a list.
- Minor performance improvements.
Packagenow hasSemanticVersioninstead ofSystem.Version.Packagenow has UpdateAvailable value to indicate newer version is available.Packagenow has its third constructor.Package(string name, SemanticVersion version, bool updateAvailable).Package(string name, Version versioon)is replaced withPackage(string name, SemanticVersion version)due to change onPackage.GetPackages(string path)now try-catch mechanism when loading and parsing .csporj file withXmlDocument.GetPackages(string path)method now has inner explanations line by line.
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.
Packagenow hasPackage()constructor amongPackage(string name, Version version)
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.
GetPackageFromNuGetAsync(string packageName)method is added instead of now obsoloteGetPackageFromNuget(string packageName)method.GetPackagesFromNuGetAsync(List<string> packageNameList)method is added instead of now obsoloteGetPackagesFromNuget(List<string> packageNameList)method.
- After making a search among results,
SingleOrDefault()is using instead ofFirst(). Since search parameter has one as "take:", result can be only one. That's whySingle()is better.SingleOrDefault()is used now due to wrong or not existing "packageName".
GetPackageFromNuget(string packageName)is obsolote now due to naming mistake. You can useGetPackageFromNuGetAsync(string packageName)instead.GetPackagesFromNuget(List<string> pakcageNameList)is obsolote now due to naming mistake. You can useGetPackagesFromNuGetAsync(List<string> packageNameList)instead.
Initial release.