NuGet restore steps:

ARTIFACTORY: How to perform Nuget restore using Artifactory

AuthorFullName__c
Tatarao Vana
articleNumber
000005270
ft:sourceType
Salesforce
FirstPublishedDate
2022-05-17T10:39:52Z
lastModifiedDate
2022-05-17
VersionNumber
3
1. Clone a sample
    repository(https://github.com/NuGet/Samples/tree/main/Satellite-Packages) or create a NuGet Project.
2. Configure the NuGet client to resolve packages using Artifactory.
3. Perform NuGet restore inside the Project.
$ nuget restore -source Artifactory -PackagesDirectory testpkgdir -NoCache -NonInteractive -verbosity normal
MSBuild auto-detection: using msbuild version '15.0' from '/usr/local/Cellar/mono/6.12.0.122/lib/mono/msbuild/15.0/bin'.
All packages listed in packages.config are already installed.

$ nuget restore SatellitePackageSample.sln
MSBuild auto-detection: using msbuild version '15.0' from '/usr/local/Cellar/mono/6.12.0.122/lib/mono/msbuild/15.0/bin'.
Restoring NuGet package ClassLibrary.1.0.0.
  CACHE http://art.local/artifactory/api/nuget/test-nuget/Packages(Id='ClassLibrary',Version='1.0.0')
  GET http://art.local/artifactory/api/nuget/test-nuget/Download/ClassLibrary/1.0.0.0
  …
  OK http://art.local/artifactory/api/nuget/test-nuget/Download/ClassLibrary/1.0.0.0 3083ms
Installed ClassLibrary 1.0.0 from http://art.local/artifactory/api/nuget/test-nuget with content hash XXXXX.
Adding package 'ClassLibrary.1.0.0' to folder '/Users/apps/nuget/restore/microsoft/Samples/Satellite-Packages/packages'
Added package 'ClassLibrary.1.0.0' to folder '/Users/apps/nuget/restore/microsoft/Samples/Satellite-Packages/packages'

NuGet Config files used:
    /Users/.config/NuGet/NuGet.Config

Feeds used:
    http://art.local/artifactory/api/nuget/test-nuget
    http://art.local/artifactory/api/nuget/v3/test-nuget

Installed:
    1 package(s) to packages.config projects
4. Verify the Artifactory logs.
2022-05-17T09:43:33.009Z [jfrt ] [INFO ] [a750e2cc3d667f03] [o.a.r.HttpRepo:429            ] [ttp-nio-8081-exec-33] - test-nuget-remote downloading https://api.nuget.org/v3/index.json Unknown content length 
….
2022-05-17T09:43:37.258Z [jfrt ] [INFO ] [8404817df574a3fb] [o.j.r.n.NuGetWorkContext:76   ] [art-exec-9          ] - Indexing NuGet metadata for repo 'test-nuget-remote-cache' on path 'classlibrary.1.0.0.nupkg'
2022-05-17T09:43:37.261Z [jfrt ] [INFO ] [8404817df574a3fb] [o.j.r.n.NuGetWorkContext:96   ] [art-exec-9          ] - Finished writing Nuget metadata for repo test-nuget-remote-cache on path 'classlibrary.1.0.0.nupkg' took 69 ms