dotnet run
won't work by default for the new Blazor Web template
#49071
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-full-stack-web-ui
Full stack web UI with Blazor
Milestone
As it stands, people will have to do
dotnet run -f net8.0
otherwise they'll get:There's no equivalent problem for launching from Visual Studio, though TBH I'm not even sure how VS decides which framework to use. I suspect we are not going to want
dotnet run
to become difficult, nor do we want to write the name of a specific TFM in all the tutorials and docs which will then get obsoleted with .NET 9.Is there a mechanism (e.g., in
launchSettings.json
) that will configuredotnet run
to pick a particular TFM by default? Or do we need to add something to the SDK to telldotnet run
that it should always ignore the-browser
TFM?The text was updated successfully, but these errors were encountered: