dotnet / website-feedback

This repo is for dot.net feedback including get started tutorial issues from the site.
MIT License
0 stars 1 forks source link

VSCode on Fedora / Linux doesn't have Run config for Blazor #287

Open MattCost opened 20 hours ago

MattCost commented 20 hours ago

URL

https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/run

Operating system

Linux

More information about your system

Fedora 41.

x64 cpu

VSCode version - 1.95.2

dotnet sdk - 9.0.100-rc.2.24474.1 [/usr/lib64/dotnet/sdk]

Description

Following the tutorial. When it comes time to run and debug the project, VSCode does not have the Blazor configuration option.

The tutorial shows several C# : Blazor app options. Image

dotnet --info

dotnet --info
.NET SDK:
 Version:           9.0.100-rc.2.24474.1
 Commit:            b4c156e3f6
 Workload version:  9.0.100-manifests.1d9add2b
 MSBuild version:   17.12.0-preview-24473-03+b4c156e3f

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

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

Host:
  Version:      9.0.0-rc.2.24473.5
  Architecture: x64
  Commit:       b4c156e3f6

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

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0-rc.2.24474.3 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.0-rc.2.24473.5 [/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
MattCost commented 20 hours ago

I was able to select the BlazorApp.csproj as the startup project with the .NET: Select C# Startup Project task

Then used the C#: Launch Startup Project configuration to run the app.

People unfamiliar with dotnet and vscode might not be able to figure this out without some updates to the tutorial.