Configure Private NuGet
In order to restore private packages from Leverage Software, you will have to create a github personal access token (PAT) and login when you open the project.
-
Create a new Personal Access Token (Classic). Your PATs are under
Settings > Developer > Personal Access Tokens.- For scopes, you just need
read:packages.
- For scopes, you just need
-
Confirm that you have read access to the required reposities on GitHub. Each project will have different dependencies, but all should require LeverageSoftwareGroup/greyhound
-
If you haven’t already, create a
NuGet.configfile in the parent directory above the repository.This file should contain the following:
<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><add key="github" value="https://nuget.pkg.github.com/LeverageSoftwareGroup/index.json" protocolVersion="3" /></packageSources><packageSourceCredentials><github><add key="Username" value="GITHUB_USERNAME" /><add key="ClearTextPassword" value="GITHUB_PAT" /></github></packageSourceCredentials></configuration> -
Open the solution in your IDE and restore the packages.