-
Select Topic AreaQuestion BodyHello, I had published a nuget package using a nuget.config file, to GitHub via the Package Manager Console in Visual Studio two months ago as a private nuget package. I had tried to register the nuget package in Nuget.org but I received a message that the Personal Access Token was either invalid or it had expired. However, when I checked it was still valid until March 21, 2023. However, I recently had an issue where my Visual Studio was corrupted and so I completely deleted Visual Studio software and reinstall the software. I went through process of generating a new Personal Access Token and when I tried to publish a nuget package, using a nuget.config file, to GitHub via the Package Manager Console in Visual Studio, I received the following error message: -
I have used the following code to publish the nuget package to GitHub (unsuccesfully): -
Please advise and thank you in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, I was able to resolve my issue and I successfully published the nuget package to GitHub. I found a solution on stackoverflow website: - Afterwards, I published the nuget package to GitHub using the following command in Package Manager Console in Visual Studio: - |
Beta Was this translation helpful? Give feedback.
Hello,
I was able to resolve my issue and I successfully published the nuget package to GitHub. I found a solution on stackoverflow website: -
Getting error when using GitHub Actions to push the nupkg to my GitHub packages.
In my case, I ran the following command Package Manager Console in Visual Studio: -
PM> dotnet nuget add source --username OWNER --password ${
{secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/OWNER/index.json"
(replace OWNER with your username or company name).Afterwards, I published the nuget package to GitHub using the following command in Package Manager Console in Visual Studio: -
PM> dotnet nuget push "C:\Users\Us…