dotnet / dotnet/website-feedback

Hello World in 5 Minutes installs extra .NET version

Open
#307 5 comments 0 reactions 0 assignees View on GitHub
area-tutorials tutorial-console
Dominant language
No language data
Stars
7
Forks
57
PR merge metrics
No merged PRs in 30d

Description

### URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create

### Operating system

linux

### More information about your system

Fedora 41 (KDE Plasma) x86_64

### Description

I followed the Download and Install step exactly, using `sudo dnf install dotnet-sdk-9.0` command to install the SDK/runtime. Then, when I create a new console app using the VSCode command palette the Output tab shows `Downloading .NET version(s) 8.0.11~x64~aspnetcore`. This is not the behaviour I want or expect from the first-party tutorial and software. It looks like this is another runtime, but why can't it just use the runtime I _already installed as per the tutorial_? This extra installation doesn't appear in `dotnet --list-runtimes` or `dotnet --list-sdks`, so it seems that vscode is bypassing dotnet itself.
How can I avoid installing this extra version and instead use the versions I installed via `dnf`? Have I done something wrong, am I experiencing a bug, or should this be part of the tutorial to avoid installing extra junk before even starting programming?

### dotnet --info

.NET SDK:
Version: 9.0.100
Commit: a2bc464e40
Workload version: 9.0.100-manifests.6bf02610
MSBuild version: 17.12.7+a2bc464e4

Runtime Environment:
OS Name: fedora
OS Version: 41
OS Platform: Linux
RID: fedora.41-x64
Base Path: /usr/lib64/dotnet/sdk/9.0.100/

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

Host:
Version: 9.0.0
Architecture: x64
Commit: a2bc464e40

.NET SDKs installed:
9.0.100 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/usr/lib64/dotnet]

global.json file:
Not found

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.