Releases: meokullu/NuGetVersionChecker
v1.4.0 File path of .csproj
Compare with previous
On this release;
Properties
CurrentDirectory, StartupPath and AppName properties are added under ParseFile.cs
You can easily comine those when needed.
GetFilePath() is also provides combined path to direct access of entry assembly's .csproj file.
-
CurrentDirectory gets data from
Directory.GetCurrentDirectory() -
StartupPath gets data from
Directory.GetParent(CurrentDirectory).Parent.Parent.FullName.(Assuming two level of file layer) -
AppName gets data from
Assembly.GetEntryAssembly().GetName().Name
When needed, instead of GetEntryAssembly() can be replaced with GetCallingAssembly() or GetExecutingAssembly().
v1.3.0 Network availability
Compare with previous
On this release;
Network availability
Before API calls to NuGet, using of NetworkInterface.GetIsNetworkAvailable() and try-catch mechanism is added on GetPackageFromNuGetAsync(string packageName, bool includePrerelease) and GetPackagesFromNuGetAsync(List<string> packageNameList, bool includePrerelease) methods.
Return data null check
Null data check are added to CheckVersionAsync(string path, bool includePrerelease) and CheckVersionAsync(List<string> pathList, bool includePrerelease). If return data is null, it returns empty Package and list of empty Package.
v1.2.0 Optional prerelease versions
Compare with previous
On this release;
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.
1.1.0 Request data checkings
On this release;
GetPackageFromNuGetAsync(string packageName) and GetPackagesFromNugetAsync(list<string> packageNameList) were using requested package name in order to fill Package Name data as return. With this version, it uses package.Identity.Id from IPackageSearchMetadata as Package Name.
GetPackages(string path) method is now checking if path is null or empty before parsing with XmlDocument.Load() and returns empty list of Package data.
CheckVersionAsync(string path) method is now checking if path is null or empty and returns empty list of Package data.
Override ToString() method is added into Package class.
v1.0.0 Initial release
Release Candiate
This is release candidate version of NuGetVersionTracker.
GetPackageFromNuGetAsync(string packageName)GetPackagesFromNuGetAsync(List<string> packageNameList)GetPackages(string path)CheckVersionAsync(string path)
methods are funcational and available to use individually.
CheckVersionAsync(string path) returns list of packages where Package has Name, SemanticVersion and UpdateAvailable data which can be used to notify, log and more.
Thank you for using NuGetVersionTracker.