UiPath.CLI.Windows installation error: "'DotnetToolSettings.xml' was not found"

I’m trying to automate a build on GitLab.com, which we use to store project artifacts from UiPath Studio. All attempts so far have failed due to the inability to get UiPath.CLI(.Windows) running anywhere. I’ve tried both Windows and Linux-based runners, as well as my own PC, and I cannot install the UiPath.CLI(.Windows) package anywhere. To clarify, I’m trying to run UiPath.CLI on the Linux machine(s) and UiPath.CLI.Windows on the Windows boxes.

I’ve tried:

My PC:
OS Name:                   Microsoft Windows 11 Enterprise
OS Version:                10.0.22631 N/A Build 22631

GitLab/SAAS Windows Server:
OS Name: Microsoft Windows Server 2022 Datacenter
OS Version: 10.0.20348 N/A Build 20348

GitLab/SAAS Linux Server:
$ uname -a
Linux runner-xxurkrix-project-65348542-concurrent-0 5.15.154+ #1 SMP Sat May 4 12:14:42 UTC 2024 x86_64 GNU/Linux

In every case I get to the point of installing UiPath.CLI.Windows and it fails with the error:

dotnet tool install --global UiPath.CLI.Windows

Tool 'uipath.cli.windows' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
Tool 'uipath.cli.windows' failed to install. Contact the tool author for assistance.

The same error appears on Linux, without the “.Windows”, of course.

I’ve researched this error, and it generally means there’s a mismatch between OS versions that the package will support vs. what the current compilation environment. However, I’ve tried the supported version(s) of the tool on the machines that I’m using, and I still get this error every time.

I need to be able to build these projects. We were able to do this under older versions of Windows, before we moved to the cloud Orchestrator. I have over a thousand UiPath projects; I can’t publish them all by hand, nor is that acceptable in our process, where we are required to have an approval step before deployment to Prod.

I could conceivably move to a self-hosted build runner (machine) that I could configure exactly as I need, but at this point I’m not convinced I can get UiPath.CLI to work anywhere.

Any help would be greatly appreciated.

– Sam

Hi @yosemitesam

Try to reinstall

dotnet tool uninstall --global UiPath.CLI.Windows
dotnet tool install --global UiPath.CLI.Windows

Thanks for the thought, but:

PS> dotnet tool uninstall --global UiPath.CLI.Windows
A tool with the package Id 'uipath.cli.windows' could not be found.

Tools are uninstalled using their package Id which may be different
from the tool name you use when calling the tool. You can find the tool names
and the corresponding package Ids for installed tools using the command
'dotnet tool list'.
PS> dotnet tool install --global UiPath.CLI.Windows
Tool 'uipath.cli.windows' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
Tool 'uipath.cli.windows' failed to install. Contact the tool author for assistance.

I’m installing NET fresh before I start on GitLab’s machines using the dotnet-install.ps1 script from Microsoft, so it’s very unlikely there are any definitions for that environment. But I gave it a shot, just in case, and got the same error.

@yosemitesam

can you try with downloading a different version

also i hope .net version is above 6

cheers

@yosemitesam

Try this, might be helpful,
– If issues persist, try installing a specific version:
dotnet tool install --global UiPath.CLI.Windows --version <version_number>.

– Ensure your .NET SDK version is compatible with the tool.

Happy Automation

Thanks for the reply. I’ve now tried several versions, all giving the same error:

Installing UiPath CLI...
$ dotnet nuget add source https://uipath.pkgs.visualstudio.com/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json --name UiPath.CLI.Windows
Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.408

Package source with Name: UiPath.CLI.Windows added successfully.
$ dotnet tool install --global UiPath.CLI.Windows --version 22.10.9239.18590
Tool 'uipath.cli.windows' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
Tool 'uipath.cli.windows' failed to install. Contact the tool author for assistance.

I have also tried UiPath.CLI.Windows verisions 23.10.8894.39673, 24.12.9166.24491, and the current, 25.4.9239.19674. All contain this under Publisher:

Project Collection Build Service (uipath)using NuGet Command Line/6.4.0 (Microsoft Windows NT 10.0.20348.0)

My build VM is running:

$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows Server 2022 Datacenter
OS Version: 10.0.20348 N/A Build 20348

I downloaded one of the NuGet packages and opened it with 7-Zip on my local system. I did not see a “DotnetToolSettings.xml” file in the package. I did see a “[Content_Types].xml” file, but it didn’t contain the target string, either.

Still no joy.

@yosemitesam

can you try with this specific dot net version if it helps

cheers

OK, maybe it’s just me, but I can’t get this working. I’ve tried these specific versions on my PC and I get exactly the same error.

Further, I’ve tried installing the versions on my GitLab “runner” VM, and it seems to fail silently. I can’t run the .EXE installers on a remote headless VM, and I found that install-dotnet.ps1 runs but doesn’t install anything:

$ echo "Getting tool(s)..."
Getting tool(s)...
$ Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile ".\dotnet-install.ps1"
$ Start-Process -FilePath ".\dotnet-install.ps1" -ArgumentList "--Version 6.0.302"
$ dotnet --list-sdks
3.1.426 [C:\Program Files\dotnet\sdk]
9.0.203 [C:\Program Files\dotnet\sdk]

$ dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

The following is what I tried on my PC. I was able to use the .EXE installers there, the packages were installed, and it still doesn’t work:

PS C:\Downloads> .\dotnet-runtime-6.0.7-win-x64.exe
PS C:\Downloads> .\windows-desktop-runtime-6.0.7-win-x64.exe
PS C:\Downloads> .\dotnet-sdk-6.0.302-win-x64.exe
PS C:\Downloads> dotnet --list-sdks
6.0.302 [C:\Program Files\dotnet\sdk]
8.0.408 [C:\Program Files\dotnet\sdk]
9.0.203 [C:\Program Files\dotnet\sdk]

PS C:\Downloads> dotnet --list-runtimes
 dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.7 [C:\Users\xxxx\AppData\Local\Microsoft\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.7 [C:\Users\xxxx\AppData\Local\Microsoft\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

PS C:\Downloads> dotnet nuget add source https://uipath.pkgs.visualstudio.com/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json --name UiPath.CLI.Windows
error: The name specified has already been added to the list of available package sources. Provide a unique name.
PS C:\Downloads> dotnet tool install --global UiPath.CLI.Windows --version 22.10.9239.18590
Tool 'uipath.cli.windows' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.

I’m at a loss at this point. The fact that I’m installing runtimes that have been out of support for over 2 years isn’t comforting. I’m beginning to think there’s no way to do this, even if I move to a self-hosted runner. I simply can’t get it to work.