NuGet Artifactory

Give your DotNet ecosystem the full power of DevOps. JFrog's solution for NuGet packages covers the full application lifecycle from developer fingertips through distribution to consumersRead More >

while covering application security, vulnerability analysis and artifact flow control. Read Less >

NuGet Repository: Features

The JFrog Platform

Screencast

Setting up a NuGet repository with JFrog Artifactory in less than one minute

Whitepaper

NuGet: 10 Reasons to use a Binary Repository Manager When Developing with NuGet

Documentation

NuGet Repositories Wiki

NuGet FAQ

What is NuGet, and how does it integrate with JFrog Artifactory?

NuGet is a package manager for .NET projects that helps manage libraries and dependencies within Visual Studio and other .NET environments. JFrog Artifactory can serve as a NuGet repository, enabling developers to host, store, and manage both public and private NuGet packages. Integrating NuGet with JFrog Artifactory provides secure and centralized management of .NET dependencies, version control, and access control.

How do I configure NuGet to use JFrog Artifactory as a repository?

To configure NuGet to use JFrog Artifactory as a repository:

Add your Artifactory NuGet repository to NuGet’s sources:

nuget sources add -name -source -username -password

Replace with a name for your repository, with the URL to your NuGet repository in Artifactory, and and with your credentials.

Alternatively, you can configure Artifactory in Visual Studio by going to Tools > NuGet Package Manager > Package Manager Settings, then add a new package source with the Artifactory URL.

How do I publish NuGet packages to JFrog Artifactory?

To publish a NuGet package to JFrog Artifactory:

Build your .nupkg package using the dotnet pack or nuget pack command:

dotnet pack

or

nuget pack

Upload the package to Artifactory using the following command:

nuget push .nupkg -Source -ApiKey

Replace .nupkg with your package file, and ensure points to your Artifactory NuGet repository. Use your Artifactory API key for authentication, if required.

What are the benefits of using JFrog Artifactory with NuGet?

Centralized Package Management: Host all NuGet packages, public and private, in one secure repository.

Dependency and Version Control: Artifactory manages multiple versions and dependencies, helping to ensure consistency across development environments.

Role-Based Access Control: Restrict access to packages by using Artifactory’s permissions and roles, ensuring secure package management.

Caching of Remote Packages: Artifactory can proxy remote NuGet repositories, caching packages locally, which improves performance and availability.

What should I do if I encounter issues using NuGet with JFrog Artifactory?

Ensure that the Artifactory URL and credentials are correctly set in your NuGet configuration.
Verify network connectivity and permissions, especially if Artifactory requires authentication.
Review any error messages in the NuGet command-line output or Visual Studio logs to pinpoint issues, such as authentication or access control errors.
Confirm that the NuGet package you are trying to publish follows the proper structure and has all necessary metadata.
Check Artifactory logs for any details on why the package might not be accessible or why a publish attempt might be failing.

Trusted Releases Built For Speed

About NuGet

NuGet is the package manager for .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.