Artifactory (NuGet)

3 Easy Steps

Teams using JFrog Artifactory can manage access to NES packages through 3 easy steps:

  1. Create a Remote Repository for our private NuGet registry.
  2. Verify your developers are able to access our package through your Virtual Repository.

Setup Instructions

Create a Remote Repository

  1. Navigate to the Administration tab (top navbar next to Application)
    JFrog Artifactory interface showing the Administration tab selected in the top navigation bar
  2. Select Repositories (left side navbar)
    JFrog Artifactory Administration page showing the Repositories option in the left sidebar navigation
  3. Navigate to the Remote subtab.
    JFrog Artifactory Repositories page showing the Remote subtab selected
  4. Select Create Repository > Remote, and then select NuGet as the type.
    JFrog Artifactory showing the Create Repository dropdown menu with Remote option visibleJFrog Artifactory repository type selection screen showing NuGet selected as the repository type
  5. Configure the following parameters on the Basic tab:
    JFrog Artifactory Basic tab configuration form for creating a NuGet remote repository
    ParameterValue
    Repository Keynes (or whatever alias your team prefers)
    URLhttps://registry.nes.herodevs.com/nuget/v3/index.json
    Usernameartifactory
    Password<NES_ACCESS_TOKEN>
    NuGet v3 Feed Urlhttps://registry.nes.herodevs.com/nuget/v3/index.json
    Force Authenticationtrue
  6. Configure the following on the Advanced tab:
    JFrog Artifactory Advanced tab configuration form for the NuGet remote repository showing Bypass HEAD Requests and Disable URL Normalization checkboxes
    • Ensure Bypass HEAD Requests is checked
    • Ensure Disable URL Normalization is checked

The final results should look similar to the following:

Basic

Completed JFrog Artifactory Basic tab configuration for NuGet remote repository showing Repository Key, URL, Username, Password, NuGet v3 Feed Url, and Force Authentication fields filled in

Advanced

Completed JFrog Artifactory Advanced tab configuration for NuGet remote repository showing Bypass HEAD Requests and Disable URL Normalization options checked

Verify Access

Lastly, with your Virtual Repository keyed as nuget-default and assuming that you have a valid Artifactory username / password, configure your NuGet Package Manager accordingly:

  1. Open a project in visual studio
  2. Go to Tools > NuGet Package Manager > NuGet Manager Settings
  3. Click on the + button on the top right
  4. Fill in the following
    1. name: Whatever name your teams wants
    2. Source: https://<DOMAIN>.jfrog.io/artifactory/api/nuget/<ARTIFACTORY_REPO_NAME>/

Visual Studio NuGet Package Manager Settings dialog showing a new package source configuration with Name and Source fields filled in

Once added, you should see a new package source in the NuGet packet manager.