Connect the .NET NuGet Client to Artifactory

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

You can configure the .NET client to work with Artifactory in the following ways:

  • dotnet - NuGet API V3

  • dotnet - NuGet API V2

dotnet NuGet API V3

Add Artifactory to your .NET client sources by running the following command:

Note: …nuget/v3/…/index.json is explicitly set in the Artifactory URL

dotnet nuget add source  https://company.jfrog.io/artifactory/api/nuget/v3/john-nuget-local/index.json --name artifactory --username john --password cmVmdGtuOjAxOjE3OTE4ODI0OTQ6d0lrRU9OUGVqU2dQaFNlNElCNmt4QWo4UDVj

dotnet NuGet API V2

Add Artifactory to your .NET client sources by running the following command:

dotnet nuget add source  https://company.jfrog.io/artifactory/api/nuget/john-nuget-local --name artifactory --username john --password cmVmdGtuOjAxOjE3OTE4ODI0OTQ6d0lrRU9OUGVqU2dQaFNlNElCNmt4QWo4UDVj