{"id":15101974,"url":"https://github.com/chobbycode/update-checker","last_synced_at":"2026-02-09T19:38:35.950Z","repository":{"id":192053366,"uuid":"685532369","full_name":"ChobbyCode/Update-Checker","owner":"ChobbyCode","description":"A NuGet package to make it easier to setup auto download checks in c#","archived":false,"fork":false,"pushed_at":"2024-01-27T20:55:49.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T22:48:43.272Z","etag":null,"topics":["csharp","dll","ease-of-use","extension","nuget-package","tool","updator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChobbyCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-31T12:51:15.000Z","updated_at":"2023-09-06T18:43:12.000Z","dependencies_parsed_at":"2024-01-27T21:53:49.811Z","dependency_job_id":null,"html_url":"https://github.com/ChobbyCode/Update-Checker","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.4666666666666667,"last_synced_commit":"dc1ac99c7e71d0732f253ff4b8ab35b1f10e0e9b"},"previous_names":["chobbycode/update-checker"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChobbyCode%2FUpdate-Checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChobbyCode%2FUpdate-Checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChobbyCode%2FUpdate-Checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChobbyCode%2FUpdate-Checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChobbyCode","download_url":"https://codeload.github.com/ChobbyCode/Update-Checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332521,"owners_count":20921852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dll","ease-of-use","extension","nuget-package","tool","updator"],"created_at":"2024-09-25T18:44:17.421Z","updated_at":"2026-02-09T19:38:35.945Z","avatar_url":"https://github.com/ChobbyCode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update-Checker\n\n\u003e [!WARNING]\n\u003e ChobbyCode Update Checker is no longer maintained, nor endorsed. I have created a better package for installing/updating/uninstalling packages called [InstallerJazz](https://github.com/ChobbyCode/InstallerJazz). Please use this instead.\n\n\u003e [!WARNING]\n\u003e This was one of the first projects I created, and published to github as a proper usable application that I'd use. Therefore, it isn't actually that good, and has a lot of issues which I've created new software to resolve. If you want to check out some of my actually good code, I'd recommend checking out some of my later C++ code, or checking out Obsidian.md Comments (on my profile). Which is a fully functioning application.\n\nChobbyCode Update Checker is a free open source tool designed to make checking for updates on github easier. UC has features such as getting the latest version, seeing if a update is available and more. UC has native Chill support. However, even though Chill is my own software, it does get flagged by AntiViruses for been dangerous which may deter anyone from using YOUR software.\n\nIf you want to contribute fork the repository then create a push request and I will review your code and add or decline it.\n\n## Installation\n\n## NuGet\n\nTo install with NuGet, create a new c# project and click on your solution or project, then click \"Manage NuGet Packages\", under Browse make sure \"Show Pre-releases\" is checked and then last of all search for Update_Checker and add the one ChobbyCode.\n\n## Usage\n\n### Setup\n\n[The below code is outdated, please click here to view the most recent methods](https://github.com/ChobbyCode/Update-Checker/wiki/Service-Release-2-For-v0.3.0-Test)\n\nUpdate-Checker requires its own function to run all the operations in. You can have as many of these functions as you want but they cannot be called the same thing for clear reasons.\n\nAt the top of you class file include the Update-Checker.\n\n```c#\nusing Update_Checker;\n```\n\nCreate a new method which can run the Update Checker methods. In the method create a instance of the UpdateChecker class. This method cannot return any information and must be ran async from the main program. Change the method's name to something more appropriate for what the class is doing. \n```c#\npublic static async void doStuff()\n{\n    // Create a instance of the UpdateChecker class\n    UpdateChecker checker = new UpdateChecker();\n}\n```\n\n## Checking for updates\n\nIn the UpdateChecker function we can call the different functions.\n\nFirst we need to setup the repo which UpdateChecker will be accessing. Change the OWNERNAME to your github username, then set REPONAME to the name of repo you are trying to get the current version of\n\n```c#\nchecker.OWNERNAME = \"ChobbyCode\";\nchecker.REPONAME = \"Update-Checker\";\n```\n\nWe can quickly get to see if there is a update by using the method CheckForUpdates and passing in the current version. The CheckForUpdates method returns a bool which returns true if there is an update and false if there is not\n\n\u003e **IMPORTANT:** When calling a UpdateChecker method make sure it is awaited. i.e \"await checker.LatestUpdateTag\".\n\n```c#\n// Checks for updates\nstring currentVersion = \"v0.1.0\"\nbool isUpdate = await checker.CheckForUpdates(currentVersion); // Checks for update with current version and stores in variable\n\nif(isUpdate){\n    // Do update stuff here\n}\n```\n\nIf you want to reduce the amount of lines you can do as below. Both of the code snippets do the same thing.\n\n```c#\nif(await checker.CheckForUpdates(\"v0.1.0\")){\n    // Do update stuff here\n}\n```\n\n## Simple Demo\n\n```c#\npublic static async void checkForUpdate()\n{\n    UpdateChecker checker = new UpdateChecker();\n\n    checker.OWNERNAME = \"ChobbyCode\";\n    checker.REPONAME = \"Update-Checker\";\n\n    string currentVersion = \"v0.1.0\";\n    string latestVersion = await checker.LatestVersionTag();\n\n    if(await checker.CheckForUpdates(currentVersion))\n    {\n        Console.WriteLine($\"There is an update available. Update {latestVersion} is available.\");\n    }\n}\n```\nSees if there is a new update available. If there is a new update available it prints there is a new update available to the console and the latest version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchobbycode%2Fupdate-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchobbycode%2Fupdate-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchobbycode%2Fupdate-checker/lists"}