Skip to content

Installing .NET Aspire CLI as a .NET global tool fails #30

Description

@dviererbe

A user reported that installing the .NET Aspire CLI as a .NET global tool fails:

i installed dotnet 9 snap installation, in that issue is, when i run aspire.cli cmd it is throwing error.

See dotnet/sdk#50551 (comment).

I was able to reproduce this error.

Steps to reproduce

  1. Setup an Ubuntu 24.04 testing environment:
$ lxc launch ubuntu:noble noble
$ lxc shell noble
$ adduser adminuser
$ sudo usermod -aG sudo adminuser
$ su adminuser
$ sudo apt update && sudo apt dist-upgrade
$ sudo snap install dotnet --classic
$ dotnet-installer install sdk latest
  1. Try installing Aspire.Cli as a global .NET tool as per the official instructions.
$ dotnet tool install -g Aspire.Cli --prerelease
Tool 'aspire.cli' failed to update due to the following:
Failed to create shell shim for tool 'aspire.cli': Failed to create tool shim for command 'aspire': Access to the path '/var/lib/snapd/void' is denied.
Tool 'aspire.cli' failed to install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions