Fix description of the "Support pages and views" checkbox of the Razor class library template
Description
I believe this sentence:
Select Support pages and views if you need to support views. By default, only Razor Pages are supported. Select Create.
should instead be:
Select Support pages and views if you need the library to contain pages and/or views. By default, only Razor Components are supported. Select Create.
Alternatively, remove it altogether.
It seems nitpicky but it sent me down quite a rabbit hole today. I took it at face value and didn't understand why after not selecting this checkbox and adding a page to the new project, it wouldn't compile. Only after spending an hour troubleshooting and manually "fixing" my project to compile did I read the next sentence in the doc, the one that is actually correct:
The Razor class library (RCL) template defaults to Razor component development by default. The Support pages and views option supports pages and views.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/razor-pages/ui-class.md
Document ID
fd116d00-0dc7-efaf-c714-34d77b345a05
Article author
@Rick-Anderson
Thanks for reporting this. Any chance you could PR this? At the top right of the article, select the Edit pen icon:

Select the pen icon again. Edit, then Save.
Here's the PR: https://github.com/dotnet/AspNetCore.Docs/pull/32231