Skip to content

Remove temporary APIs before .NET 8 shipsย #50225

Closed
@SteveSandersonMS

Description

@SteveSandersonMS

When the Razor compiler is updated, we need to remove:

  • Everything in src\Components\Web\src\RenderMode\TemporaryRenderModeAttributes.cs, since they will be superseded by types used with the @rendermode directive:
    • RenderModeServerAttribute
    • RenderModeWebAssemblyAttribute
    • RenderModeAutoAttribute
  • RenderTreeBuilder.AddComponentParameter(int, string, IComponentRenderMode) (since it will be superseded by AddComponentRenderMode). Can then also remove _pendingComponentCallSiteRenderMode.
  • Logic inside RenderTreeBuilder.AddAttribute that specifically checks for the attribute name "@formname", since that will be superseded by AddNamedEvent. Can then also remove _pendingNamedSubmitEvent.
  • Update the project template, obviously, or it will no longer work
    • Add a using static so we don't need the RenderMode. prefix

Metadata

Metadata

Labels

area-blazorIncludes: Blazor, Razor Componentstask

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions