Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meokullu/nugetversionchecker
NuGetVersionChecker is tracking project for versions of NuGet packages.
https://github.com/meokullu/nugetversionchecker
dependency nuget nuget-package nuget-packages version version-check version-checker version-compare
Last synced: 15 days ago
JSON representation
NuGetVersionChecker is tracking project for versions of NuGet packages.
- Host: GitHub
- URL: https://github.com/meokullu/nugetversionchecker
- Owner: meokullu
- License: mit
- Created: 2024-06-07T13:02:35.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-09-01T15:11:45.000Z (4 months ago)
- Last Synced: 2024-12-08T07:16:29.681Z (26 days ago)
- Topics: dependency, nuget, nuget-package, nuget-packages, version, version-check, version-checker, version-compare
- Language: C#
- Homepage: https://meokullu.github.io/NuGetVersionChecker/
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
## NuGetVersionChecker
[![NuGetVersionChecker](https://img.shields.io/nuget/v/NuGetVersionChecker.svg)](https://www.nuget.org/packages/NuGetVersionChecker/) [![NuGetVersionChecker](https://img.shields.io/nuget/dt/NuGetVersionChecker.svg)](https://www.nuget.org/packages/NuGetVersionChecker/) [![License](https://img.shields.io/github/license/meokullu/NuGetVersionChecker.svg)](https://github.com/meokullu/NuGetVersionChecker/blob/master/LICENSE)NuGet Version Checker is a project aims recency of NuGet packges on projects.
![NuGetVersionChecker](https://github.com/meokullu/NuGetVersionChecker/assets/4971757/2bb4e390-009e-442b-b91a-8f067f2757fc)
### Description
Since there is no tracking mechanism that notifies users of package without manually checking them, NuGetVersionChecker will allow a way to track packages certain ways on upcoming versions.### How to download
Release: [Latest release](https://github.com/meokullu/NuGetVersionChecker/releases/latest)[Download on NuGet gallery](https://www.nuget.org/packages/NuGetVersionChecker/)
.NET CLI:
```
dotnet add package NuGetVersionChecker
```### Example Usage
```
// Path for .csporj file. Return list of `Package` that contains package names, versions and availability to update.
CheckVersionAsync(string path, bool includePrelease = false);
``````
// Path for .csproj file. Returns list of `Package` that contains package name and it version.
GetPackages(string path);
``````
// packageName of the NuGet package. Returns `Package` that contains package name and its version.
GetPackageFromNuGetAsync(string packageName, bool includePrerelease = false);
``````
// packageNameList of the list of NuGet package names. Returns List of `Package` that contains packages name and their versions.
GetPackagesFromNuGetAsync(List packageNameList, bool includePrerelease = false);
```#### Console Application
```
// Call this method.
NuGetVersionCheck();
``````
internal static void NuGetVersionCheck()
{
string currentDirectory = System.IO.Directory.GetCurrentDirectory();string startupPath = Directory.GetParent(currentDirectory).Parent.Parent.FullName;
string appName = Assembly.GetExecutingAssembly().GetName().Name;
List result = CheckVersionAsync($"{startupPath}//{appName}.csproj").GetAwaiter().GetResult();
foreach (Package package in result.Where(p => p.UpdateAvailable))
{
Console.WriteLine($"Update available for: {package}");
// Debug.WriteLine($"Update available for: {package}");
}
}
```To check listed methods visit wiki page. [NuGetVersionChecker Wiki](https://github.com/meokullu/NuGetVersionChecker/wiki)
### Version History
See [Changelog](https://github.com/meokullu/NuGetVersionChecker/blob/master/CHANGELOG.md)
### Task list
* Create an issue or check task list: [Issues](https://github.com/meokullu/NuGetVersionChecker/issues)### Licence
This repository is licensed under the "MIT" license. See [MIT license](https://github.com/meokullu/NuGetVersionChecker/blob/master/LICENSE).### Authors & Contributing
If you'd like to contribute, then contribute. [contributing guide](https://github.com/meokullu/NuGetVersionChecker/blob/master/CONTRIBUTING.md).[![Contributors](https://contrib.rocks/image?repo=meokullu/NuGetVersionChecker)](https://github.com/meokullu/NuGetVersionChecker/graphs/contributors)
### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)