ARTIFACTORY: Install the Nuget Package using the vcpkg

Products
Frog_Artifactory
Content Type
Installation_Setup
AuthorFullName__c
Ramyashree V
articleNumber
000006728
FirstPublishedDate
2025-12-25T10:24:45Z
lastModifiedDate
2025-12-25

ARTIFACTORY: Install the Nuget Package using the vcpkg

Install the NuGet package using the vcpkg:

The Vcpkg tool is a free and open-source C/C++ package manager maintained by Microsoft and the C++ community that runs on Windows, macOS, and Linux. 

Prerequisites
  • Vcpkg client
  • A NuGet package feed
Steps:

1. Install the vcpkg on the Windows server. Ignore if it is already installed.

2. Follow the Artifactory Set Me Up instructions to configure Artifactory as Source (to set up the Nuget Feed):
.$(vcpkg fetch nuget) sources add -Name <feed name> -Source <feed url>

3. Configure the API key:
.$(vcpkg fetch nuget) setapikey <apikey> -Source <feed url>

4. Configure vcpkg to use NuGet feed:
$env:VCPKG_BINARY_SOURCES="clear;nuget,<feed url>,readwrite"
set VCPKG_USE_NUGER_CONFIG=C:\<userame>\AppData\Roaming\NuGet\nuget.config 

5. Install the package using the vcpkg command:
.$(vcpkg fetch nuget) install NLog -Source http://<JPD>/artifactory/api/nuget/v3/vcpkg-nuget-remote/index.json
Below is the screenshot that shows the installation of the package using the vcpkg

User-added image 

Once the package is installed, we can check the package information in the Artifactory UI.