Open Closed

Install ABP CLI failed again #8968


User avatar
0
jaylin created

ABP Framework version: v8.2.2

UI Type: Angular

Database System: EF Core (SQL Server)

Tiered (for MVC) or Auth Server Separated (for Angular): yes

Exception message and full stack trace:
Run dotnet tool install -g Volo.Abp.Studio.Cli
dotnet tool install -g Volo.Abp.Studio.Cli
shell: /usr/bin/bash -e {0}
env:
IMAGE_NAME: mb-betterbilling-api
DOTNET_ROOT: /usr/share/dotnet

Tool 'volo.abp.studio.cli' 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 'volo.abp.studio.cli' failed to install. Contact the tool author for assistance.
Error: Process completed with exit code 1.

I had similar question 3 months ago - https://abp.io/support/questions/8403/Newer-version-of-CLI-broke-my-CI--CD-pipelines

It seems happening again, I don't want to upgrade my .NET 8 to 9, and I can reproduce the issue locally:

image.png

I tried 8.3.4, it's not working too :
dotnet tool install -g Volo.Abp.Cli --version 8.3.4
image.png


3 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi,

    The first error:

    image.png

    Is related dotnet runtime mismatch. So that means, you don't have the target framework runtime of the CLI. You're on .NET 8, but CLI requires .NET9 etc. You can pass --version parameter. (You already did that)

    The second error:

    image.png

    is multiple installed CLI. ABP moved to a new CLI named Volo.Abp.Studio.Cli. They both uses the same command name: abp. They cannot be installed at the same time since they conflict.

    Here are my 2 suggestions:

    Installing .NET 9 runtime

    -- OR --

    Installing old CLI

    You can uninstall the new CLI and install the old one:

    dotnet tool uninstall -g volo.Abp.Studio.Cli
    dotnet tool update -g volo.abp.cli --version 8.3.4
    
  • User Avatar
    0
    jaylin created

    Thanks for the quick response, I figured it out, you are right, I need to add --version 8.3.4 to support .NET 8.

    I am wondering why dotnet tool install -g Volo.Abp.Studio.Cli was working 4 days ago, then stopped today?

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    There are a couple of version updates in 4 days:
    https://www.nuget.org/packages/Volo.Abp.Studio.Cli/0.9.25#versions-body-tab

    But it supports only .NET9, so you cannot use it without .NET 9 runtime.

    ...Volo.Abp.Studio.Cli was working 4 days ago, then stopped today?

    Probably you're using an older version that targets :NET8 and you couldn't update it since newer version cannot be installed. The older version were keep running on your system I think.

    I checked on the nuget and it seems .NET 9 version is related 3 days ago: https://www.nuget.org/packages/Volo.Abp.Studio.Cli/0.9.24

    And the last verison that can work with .NET8 is 0.9.23

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10