Skip to content

Remove deprecated Razor runtime compilation and enable Hot Reload for…#19069

Open
Skrypt wants to merge 1 commit intomainfrom
skrypt/playwright-comp
Open

Remove deprecated Razor runtime compilation and enable Hot Reload for…#19069
Skrypt wants to merge 1 commit intomainfrom
skrypt/playwright-comp

Conversation

@Skrypt
Copy link
Copy Markdown
Contributor

@Skrypt Skrypt commented Mar 27, 2026

… module views

Remove AddRazorRuntimeCompilation() and all supporting code deprecated in .NET 10: SharedViewCompilerProvider, RazorCompilationOptionsSetup, RazorCompilationFileProviderAccessor, DevelopmentViewsFeature, and the refs folder checks in ShellViewFeatureProvider and AdminPageRouteModelProvider.

Replace RazorCompilationFileProviderAccessor with ViewFileProviderAccessor that composes file providers directly without the deprecated MvcRazorRuntimeCompilationOptions.

Register ModuleProjectRazorFileProvider and ApplicationViewFileProvider on the host's ContentRootFileProvider in Development mode so Hot Reload can detect and apply .cshtml changes from module source directories.

Update VS Code tasks.json and launch.json for dotnet watch with Hot Reload support and target framework selection via input prompt.

… module views

Remove AddRazorRuntimeCompilation() and all supporting code deprecated in
.NET 10: SharedViewCompilerProvider, RazorCompilationOptionsSetup,
RazorCompilationFileProviderAccessor, DevelopmentViewsFeature, and the
refs folder checks in ShellViewFeatureProvider and AdminPageRouteModelProvider.

Replace RazorCompilationFileProviderAccessor with ViewFileProviderAccessor
that composes file providers directly without the deprecated
MvcRazorRuntimeCompilationOptions.

Register ModuleProjectRazorFileProvider and ApplicationViewFileProvider on
the host's ContentRootFileProvider in Development mode so Hot Reload can
detect and apply .cshtml changes from module source directories.

Update VS Code tasks.json and launch.json for dotnet watch with Hot Reload
support and target framework selection via input prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant