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
- 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
- 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.
A user reported that installing the .NET Aspire CLI as a .NET global tool fails:
See dotnet/sdk#50551 (comment).
I was able to reproduce this error.
Steps to reproduce
Aspire.Clias a global .NET tool as per the official instructions.