cannot install #152

Open
opened 2026-01-29 16:30:42 +00:00 by claunia · 1 comment
Owner

Originally created by @redflitzi on GitHub (Jan 10, 2025).

I use .net 8 and got the current packaging.targets tools 0.1.232 over a existing older one, using Nuget.

Installing then one-by-one gives the following message:
dotnet tool install --global dotnet-zip
says
Tool 'dotnet-zip' is already installed
The same for -tarball, -rpm, and -deb.

Ok. When I then try to install the tools one after the other, like
dotnet zip install
the following message occurs:

You must install or update .NET to run this application.

App: /home/vscode/.dotnet/tools/dotnet-zip
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  8.0.1 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=linux-x64&os=debian.12

I cannot find a way to overcome this. I do not want to install .net 6 framework.

I have no access to /home/vscode/.dotnet/... as I am working on a github vscode codespace, and therefore cannot simply delete the dotnet-zip and similar tools in the folder.

What must I do to get it running?

Originally created by @redflitzi on GitHub (Jan 10, 2025). I use .net 8 and got the current packaging.targets tools 0.1.232 over a existing older one, using Nuget. Installing then one-by-one gives the following message: `dotnet tool install --global dotnet-zip ` says `Tool 'dotnet-zip' is already installed ` The same for -tarball, -rpm, and -deb. Ok. When I then try to install the tools one after the other, like `dotnet zip install ` the following message occurs: ``` You must install or update .NET to run this application. App: /home/vscode/.dotnet/tools/dotnet-zip Architecture: x64 Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64) .NET location: /usr/share/dotnet The following frameworks were found: 8.0.1 at [/usr/share/dotnet/shared/Microsoft.NETCore.App] Learn more: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=linux-x64&os=debian.12 ``` I cannot find a way to overcome this. I do not want to install .net 6 framework. I have no access to /home/vscode/.dotnet/... as I am working on a github vscode codespace, and therefore cannot simply delete the dotnet-zip and similar tools in the folder. What must I do to get it running?
Author
Owner

@MatiasG19 commented on GitHub (Jun 15, 2025):

I have a similar issue with net9 and Ubuntu 24.04, it says .NET location: Not found:

You must install .NET to run this application.

App: /home/matias/.dotnet/tools/dotnet-deb
Architecture: x64
App host version: 9.0.6
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.24.04-x64&os=ubuntu.24.04&apphost_version=9.0.6

Framework is installed:

dotnet --list-sdks
9.0.107 [/usr/lib/dotnet/sdk]

dotnet --list-runtimes
Microsoft.AspNetCore.App 9.0.6 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.6 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
@MatiasG19 commented on GitHub (Jun 15, 2025): I have a similar issue with net9 and Ubuntu 24.04, it says `.NET location: Not found`: ```sh You must install .NET to run this application. App: /home/matias/.dotnet/tools/dotnet-deb Architecture: x64 App host version: 9.0.6 .NET location: Not found Learn more: https://aka.ms/dotnet/app-launch-failed Download the .NET runtime: https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.24.04-x64&os=ubuntu.24.04&apphost_version=9.0.6 ``` Framework is installed: ```sh dotnet --list-sdks 9.0.107 [/usr/lib/dotnet/sdk] dotnet --list-runtimes Microsoft.AspNetCore.App 9.0.6 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 9.0.6 [/usr/lib/dotnet/shared/Microsoft.NETCore.App] ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#152