Create a NuGet Smart Remote Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

The procedure for creating a Smart Remote repository for NuGet involves additional configuration, as described below.

To create a NuGet Smart Remote repository:

  1. On the first Artifactory instance (JFROG_INSTANCE_1), do the following:

    1. In the Administration module, go to Repositories > Create a Repository > Remote.

    2. Choose NuGet as the package type.

    3. In the Basic tab, enter the URL of the desired remote NuGet registry (default: https://www.nuget.org).

    4. Enter additional basic and advanced settings as required, and then click Create Remote Repository.

    You now have a remote repository that points to the remote NuGet registry.

  2. On the second Artifactory instance, create a Smart Remote repository that points to the remote repository on the first Artifactory instance. The URL will look like this:

    https://<JFROG_INSTANCE_1>/artifactory/api/nuget/<JFROG_INSTANCE_1_REMOTE_REPO>

  3. Enter your username and password for JFROG_INSTANCE_1. Alternatively, enter a valid access token issued by JFROG_INSTANCE_1.

  4. In the Basic tab of the second Artifactory instance, configure the following settings:

    Parameter

    Value

    NuGet Download Context Path

    Download

    NuGet Feed Context Path

    Leave blank

    NuGet v3 Feed URL

    https://<JFROG_INSTANCE_1>/artifactory/api/nuget/v3/<JFROG_INSTANCE_1_REMOTE_REPO>/

    See the note below.

    smart-remote_nuget-settings.png

    Important

    The Feed URL is used to download the index.json/feed.json file, which serves as the service index for NuGet packages. Make sure to point this Feed URL to your Smart Remote repository (JFROG_INSTANCE_1) so that it serves as your service index and feed. Without this, the Smart Remote repository will try to go directly to nuget.org for feed resolution, which will prevent JFROG_INSTANCE_1 from caching artifacts correctly and may be blocked by network restrictions.

  5. Click the Test button to verify the connection to JFROG_INSTANCE_1.

  6. To configure your NuGet client with the newly created Smart Remote repository, see Connect Your NuGet Client to Artifactory.