dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.54k stars 25.3k forks source link

Cover setting the framework for prior release framework support #33249

Closed snoekiede closed 1 month ago

snoekiede commented 1 month ago

[EDIT by guardrex to update the article metadata]

Description

[Enter feedback here] The -ho parameter in the dotnet new command doesn't seem to work, I am using version 8.0.303 of the dotnet tool

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/tooling.md

Document ID

dd777362-b92d-cac6-2343-a7aaf31d0bdf

Article author

@guardrex

github-actions[bot] commented 1 month ago

😎🏖️🌴 Summertime! 🏐🏄‍♀️🦩

Stand by! A green dinosaur 🦖 (guardrex) will arrive shortly to assist.

guardrex commented 1 month ago

Hello @snoekiede ... The hosted Blazor WebAssembly template was dropped for 8.0; so when using the 8.0 SDK, you need to also set the framework option ...

dotnet new blazorwasm -f net7.0 -ho

This would be difficult for us to cover in current release articles. We assume that devs understand that the current SDK only supports the current framework release.

I'll address this in the Tooling article, where I can include a section that explains setting the framework, either via the .NET CLI or VS, for prior framework release features.

Leave this issue open. It will close automatically later when the PR merges. Thanks for the issue!