Skip to content

Conversation

@tmat
Copy link
Member

@tmat tmat commented Sep 18, 2025

Fixes #76989

Allows arbitrary edits within @function block of Razor cshtml page. Previously edits to types defined in this block were applied "in-place" and thus subject to limitations on non-reloadable type edits.

E.g. adding an enum value was reported as rude edit:

@page
...
@function {
   enum E
   {
     A,
     B,
     // C 
   } 
}

@tmat tmat requested a review from a team as a code owner September 18, 2025 20:00
@tmat
Copy link
Member Author

tmat commented Sep 18, 2025

@DustinCampbell ptal

Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! 💘

cc @davidwengier as FYI about the improvement to Razor ENC.

…inueAnalyzer.cs

Co-authored-by: Dustin Campbell <dustin@teamcampbell.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EnC] Unexpected null - file EditSession.cs when updating the body of a method in a nested class when marked with CreateNewOnMetadataUpdate

3 participants