Uipcli.exe built in nuget package sources lead to long execution times

Hello Everyone,

I am trying to use uipcli.exe in the context of our CICD pipeline, however it seems to me that the tool has defined built in NuGet package sources. In our Organization, all NuGet feeds are only accessible via proxy and can not be used directly. These circumstances lead to very long execution times when building with uipcli.exe, because all baked in feeds get tried and fail, before the CLI gets to the feeds defined by our organization.

The process output looks like this:

D:\Program Files\UiPath\uipath.cli.windows.23.2.8467.25277>uipcli.exe package pack D:\CICD-Tests\project.json -o D:\Temp
Packing project(s) at path D:\CICD-Tests\project.json...
Detected schema version 4.0
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'D:\Program Files\UiPath\Packages' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.
uipcli Warning: 0 : NU1801: The local source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\' doesn't exist.

I have tried placing the following NuGet.config file next to the application to override the feeds defined by uipcli, but with no luck:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="Our-Org-Feed" value="Our-Org-Feed Address" />
  </packageSources>
  <config>
    <add key="signatureValidationMode" value="accept" />
  </config>
</configuration>

Is there a possibility to ditch the sources defined by uipcli.exe and go straight to our custom feed?

Many thanks in advance.
Adrian

1 Like

Did you find a solution for this? We’re having the same issue.

Unfortunately no. It seems like the value is hardcoded and we will have to hope that this will be configurable in the future.

Your other option would be to write your own CLI using the Orchestrator API and other cli tools.

Does anyone from UiPath has a solution? This is relly an issue in the case you will pack projects inside piplines.

@adrian.hal: Did you find a solution?

Unfortunately not. I eventually gave up on uipcli.exe. I think your best bet is using a combination of UiPath.Studio.CommandLine.exe (comes with the studio installation) and API calls to the orchestrator. You can build your own CLI program this way and I can’t think of any use cases this doesn’ t cover. Obviously it is going to be a lot more work than using something that works out of the box.

1 Like