Downloading Latest release via C# #58810
Replies: 1 comment
-
Hi! It looks like you're on the right track with your code. The issue might be related to how the
If you’ve tried the above steps and the issue persists, the problem might lie in how the |
Beta Was this translation helpful? Give feedback.
-
Body
Hi everyone,
I Have a question. How do I download the latest release of a repository via C#. I have created a Token (Classic) for my private repository, I selected the full control option for repository. My code does find the url to download the file but HttpClient keeps on returning 404 even though I send it my token. Can you please help. Im new to github and would like to use it as an update repository.. Below is my code :
public UpdateChecker(string currentVersion)
{
this.currentVersion = currentVersion;
}
Guidelines
EDIT: If I paste the "downloadUrl" in my browser that I'm logged in with it downloads the file.
Beta Was this translation helpful? Give feedback.
All reactions