Skip to content

Razor directive ordering #31191

Closed
Closed
@guardrex

Description

@guardrex

Description

Without vertical spacing ...

  1. @page
  2. @rendermode
  3. @using directives (ordering: System, Microsoft, app)
  4. Others in alphabetical order

This ordering is approximately what the PU repo components do. They aren't completely consistent.

Most components already use this ordering, and this issue is to find and update any don't adopt the convention. I'd also like to call out the ordering in a bullet point in the Razor components section.

Page URL

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

Content source URL

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

Document ID

618e1209-44b8-c367-13e7-fbcfc26b07ea

Article author

@guardrex

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions