Skip to content

NuGet Layout Provider

Introduction

Our support for NuGet is handled via the Nuget Layout provider. We currently only support NuGet protocol version 2.0.

The code for the NuGet layout provider is located under the strongbox-storage-nuget-layout-provider module.

Artifact Coordinates

This is the list of artifact coordinates supported by the provider:

Coordinate Description Type
id The name of the package Mandatory
version The version of the package Mandatory
extension The extension of the package Mandatory

User Agent

The accepted User-Agent headers supported must look like User-Agent=NuGet/*.

Custom Features

This layout provider has feeds.

NuGet 2 Search Provider

The NuGet layout provider supports uses the OrientDB (default).

Supported Commands

Following CLI commands supported:

  • nuget publish
  • nuget delete
  • nuget install
  • nuget list

Classes of Interest

The following are some of the most important classes you will need to be familiar with in order to work on this layout provider:

Class Description
NugetArtifactCoordinates This is an implementation of ArtifactCoordinates for NuGet.
NugetLayoutProvider This is the actual implementation of the NuGet layout provider.
NugetRepositoryFeatures This defines the custom layout provider features for NuGet (like, for example, feeds).
NugetRepositoryManagementStrategy This class is used to handle the initialization of NuGet repositories.
NugetArtifactController This is the NuGet-specific implementation of the BaseArtifactController.

See Also


Last update: 2020-12-07