Skip to content
Alena edited this page Aug 4, 2022 · 1 revision

NuGet

NuGet repository is a hosting service for .NET packages, here is Artipie repository settings file example:

repo:
  type: nuget
  url: http://{host}:{port}/{repository-name}
  storage:
    type: fs
    path: /var/artipie/data/

url field is required on account of repository specifics, {host} and {port} are Artipie service host and port, {repository-name} is the name of the repository.

To install and publish NuGet packages with nuget client into Artipie NuGet repository use the following commands:

# to install the package
$ nuget install MyLib -Version 1.0.0 -Source=http://{host}:{port}/{repository-name}/index.json

# to publish the package
$ nuget push my.lib.1.0.0.nupkg -Source=http://{host}:{port}/{repository-name}/index.json