Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"You must install .NET to run this application." #58018

Closed
1 task done
Spongman opened this issue Sep 22, 2024 · 3 comments
Closed
1 task done

"You must install .NET to run this application." #58018

Spongman opened this issue Sep 22, 2024 · 3 comments
Labels
needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically

Comments

@Spongman
Copy link

Spongman commented Sep 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

all the other issues realted to this error message are either closed, or contain irrelevant information.

this is a trivial repro case that shows that the scripted dotnet sdk install is fundamentally broken.

Expected Behavior

don't be broken

Steps To Reproduce

run a rocky9 docker container:

docker run -it rockylinux:9 /bin/bash

in the container's bash prompt, run the following commands:

dnf install -qy libicu                               # required library
curl -s https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | bash # install dotnet sdk
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools # add dotnet and tools to path
dotnet --info
dotnet tool install --global dotnet-outdated-tool   # install a tool
dotnet tool list --global                           # demonstrate that it's installed correctly
dotnet-outdated                                     # attempt to run it

this will install the latest dotnet SDK, install a command (dotnet-outdated-tool), and attempt to run it.

the entire output is:

Importing GPG key 0x350D275D:
 Userid     : "Rocky Enterprise Software Foundation - Release key 2022 <releng@rockylinux.org>"
 Fingerprint: 21CB 256A E16F C54C 6E65 2949 702D 426D 350D 275D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

Installed:
  libicu-67.1-9.el9.x86_64

dotnet-install: Attempting to download using aka.ms link https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.401/dotnet-sdk-8.0.401-linux-x64.tar.gz
dotnet-install: Remote file https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.401/dotnet-sdk-8.0.401-linux-x64.tar.gz size is 211866896 bytes.
dotnet-install: Extracting archive from https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.401/dotnet-sdk-8.0.401-linux-x64.tar.gz
dotnet-install: Downloaded file size is 211866896 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Installed version is 8.0.401
dotnet-install: Adding to current process PATH: `/root/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
.NET SDK:
 Version:           8.0.401
 Commit:            811edcc344
 Workload version:  8.0.400-manifests.b6724b7a
 MSBuild version:   17.11.4+37eb419ad

Runtime Environment:
 OS Name:     rocky
 OS Version:  9.3
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /root/.dotnet/sdk/8.0.401/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
  Version:      8.0.8
  Architecture: x64
  Commit:       08338fcaa5

.NET SDKs installed:
  8.0.401 [/root/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.8 [/root/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.8 [/root/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.401

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, view the instructions: https://aka.ms/dotnet-https-linux

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
You can invoke the tool using the following command: dotnet-outdated
Tool 'dotnet-outdated-tool' (version '4.6.4') was successfully installed.
Package Id                Version      Commands
------------------------------------------------------
dotnet-outdated-tool      4.6.4        dotnet-outdated
You must install .NET to run this application.

App: /root/.dotnet/tools/dotnet-outdated
Architecture: x64
App host version: 8.0.8
.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=linux-x64&os=rocky.9&apphost_version=8.0.8```

### Exceptions (if any)

"You must install .NET to run this application."

### .NET Version

8.0.401

### Anything else?

_No response_
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Sep 22, 2024
@martincostello
Copy link
Member

martincostello commented Sep 22, 2024

Looks like this issue should be transferred to dotnet/sdk as it doesn't appear to be specific to ASP.NET Core.

@Spongman
Copy link
Author

ugh. can you do that? or should i just duplicate it manually?

@Spongman Spongman closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
@martincostello
Copy link
Member

I'm afraid not, I don't have the permissions to do that - otherwise I would have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically
Projects
None yet
Development

No branches or pull requests

2 participants