ASP.NET Community Standup: Boosting Razor productivity
TL;DR
Razor now gets much closer to full C# editing parity: David Wenger demoed new Roslyn-powered code actions in Razor such as generating methods, properties, fields, implementing interfaces like IDisposable, inheriting abstract classes, and fixing missing using directives.
The Roslyn repo merge is doing real work already: Devin said moving Razor into the Roslyn repo cut duplication, improved inner-loop development, enabled access to Roslyn internals, and made some features simpler or finally practical to build.
AI agents can use the C# LSP server to understand Razor semantically: With the .NET skills marketplace and plugin installed in GitHub Copilot CLI, agents can find definitions and rename symbols in Razor using language-server intelligence instead of brute-force grep across generated .g.cs files.
Unused using directives and tag helpers now clean up properly in Razor: The tooling can fade out unnecessary usings, remove or sort them, and even distinguish cases where Roslyn thinks an import is unused but Razor knows it matters for components like PageTitle.
Project Sonic is targeting cold compilation speed first: Chris Sinkevich said the team is eliminating a wasteful extra skeleton-compilation pass, which should improve command-line builds, Visual Studio startup, colorization latency, and other features that depend on understanding Razor code quickly.
Most of the editor improvements are available now in Visual Studio Insiders: Wenger said the code action work was demoed from the current Insiders build, and Daniel Roth strongly recommended installing Insiders side-by-side with stable to try the latest Razor tooling safely.
The Breakdown
Razor just picked up a big chunk of the C# editor experience, including generate-method, implement-interface, abstract-class, and using-cleanup actions directly inside .razor and .cshtml files, while new LSP support also lets AI agents reason about Razor semantically instead of fumbling through generated files. The team also teased "Project Sonic," a compiler rewrite aimed at much faster cold builds, colorization, and IDE startup for Razor apps.
Was This Useful?
Share
Keep Reading
Make Alcreon Yours
Tune your feedFive quick questions, and the feed ranks what matters to you first.Or just get notified
The weekly Echo. Signal worth keeping in your inbox.
Every new piece, announced on X.
Read Next
See all
Playbook
Cheap Models, Hard Tasks
Most agent workflows route every step to the frontier model by default. The bill scales with how chatty the agent gets, even when most steps don't need that brain.

Playbook
Tasteful Skills
“Tasteful Skills” argues that the best agent skills are not documentation or best-practice lists.

Playbook
The Art of Tasteful Prompting
Learn how tasteful prompting helps you move beyond generic AI output by shaping context, style, and judgment from the start.