Using GitHub hosted NuGet Packages #170
Brennan1994
announced in
Announcements
Replies: 2 comments 1 reply
-
I've referred back to this discussion so many times. @Brennan1994 thanks for documenting this for us. |
Beta Was this translation helpful? Give feedback.
0 replies
-
When a token expires, sometimes VS will not prompt you to re-enter credentials. The way to fix this is to iteratively:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To use the GitHub hosted NuGet packages. like fda-model, you'll need to authenticate. To do this, you need a personal access token. Instructions for creating that token are here: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
At a minimum, you'll need read access permissions. further Instructions for which permissions to assign that token available here:
https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages
Once you're in Visual Studio, you'll want to add the HEC Github as a source. This can be done under the tools|options menu.
Once added, You'll want to browse all the packages you now have access to. You can do this buy opening the package manager from tools|manage packages for solution . Select the HEC Github from your dropdown menu in the top right, and click the browse tab. On your first time opening this you should get a prompt to enter a username and password. Enter the following:
Username: HydrologicEngineeringCenter
Password:{Your Personal Access Token}
When you finish. you should see all the available packages like this:
Beta Was this translation helpful? Give feedback.
All reactions