Skip to content

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.

  1. Create a new Personal Access Token (Classic). Your PATs are under Settings > Developer > Personal Access Tokens.

    • For scopes, you just need read:packages.
  2. Confirm that you have read access to the required reposities on GitHub. Each project will have different dependencies, but all should require LeverageSoftwareGroup/greyhound

  3. If you haven’t already, create a NuGet.config file 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>
  4. Open the solution in your IDE and restore the packages.