How To Download Respective Nuget Packages Using CLI In An Air Gapped Environment?

How to download a respective nuget packages using CLI in an Air Gapped Environment?

Issue Description: How to download a respective nuget packages using CLI in an Air Gapped Environment?

Root cause: When using Studio on a computer that is not connected to the internet? This is only required if Orchestrator connectivity is not available. When Studio is connected to Orchestrator, packages can be installed from Orchestrator feeds.

Resolution: Download packages on another computer and manually transfer them to the computer where Studio is installed.

Follow below steps on the internet connected machine,

  1. Download the nuget.exe from here (Would recommend to download the latest version).
  2. Open CMD and navigate to the downloaded path of the nuget.exe
  3. Run the command "nuget install Newtonsoft.Json -Version 12.0.2"
  1. See the respective package downloaded to the Downloads folder
  2. Also, when tried downloading the "UiPath.System.Activities" using the above, it will fail to download
  3. Reason: UiPath has officially moved the feeds from "https://api.nuget.org/v3/index.json" to "https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json". Ref Doc's: Managing Activities Packages
  4. In this case, modify the NuGet.Config file located "%appdata%\NuGet\NuGet"
  5. Open the file "NuGet.Config" and modify the parameter as shown below,
    1. Before:
  1. Add a parameter ""
  2. After:
  1. Save and close the NuGet.Config file
  2. Now, navigate back to the CMD and try attempting to run the command again "nuget install UiPath.System.Activities -Version 23.4.4"
  3. It will now download the package "UiPath.System.Activities" and its dependencies of the respective version in to the downloads folder
  4. Copy the downloaded folders to the Air Gapped environment in the location"%userprofile%/.nuget/packages"
  5. Now there should be no issues related to the packages and its dependencies.

Other commands list can be found in Consume Packages - Install Use Packages Nuget Cli .

Contact UiPath Product Support: If issue persists, create UiPath Support Ticket for further troubleshooting.

Ensure to provide / attach the below list of details in ticket being created,

  1. Execution Logs
  2. Event viewer Logs: How to get Application Logs from the Event Viewer
  3. Would be helpful for diagnosing the issue if any screenshots of the errors are added to the created ticket.