Skip to content

Commit 1431099

Browse files
authored
Add links to Hot Reload (#48659)
1 parent 5af13bd commit 1431099

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/core/compatibility/aspnet-core/10/razor-runtime-compilation-obsolete.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 08/08/2025
66

77
# Razor run-time compilation is obsolete
88

9-
Razor run-time compilation is obsolete and is not recommended for production scenarios. For production scenarios, use the default build-time compilation. For development scenarios, use Hot Reload instead.
9+
Razor run-time compilation is obsolete and is not recommended for production scenarios. For production scenarios, use the default build-time compilation. For development scenarios, use [Hot Reload](/aspnet/core/test/hot-reload) instead.
1010

1111
## Version introduced
1212

@@ -28,11 +28,11 @@ This change can affect [source compatibility](../../categories.md#source-compati
2828

2929
## Reason for change
3030

31-
Razor run-time compilation has been replaced by Hot Reload, which has been the recommended approach for a few years now. This change makes it clearer that Razor run-time compilation doesn't get support for new features and should no longer be used.
31+
Razor run-time compilation has been replaced by [Hot Reload](/aspnet/core/test/hot-reload), which has been the recommended approach for a few years now. This change makes it clearer that Razor run-time compilation doesn't get support for new features and should no longer be used.
3232

3333
## Recommended action
3434

35-
Remove calls to <xref:Microsoft.Extensions.DependencyInjection.RazorRuntimeCompilationMvcBuilderExtensions.AddRazorRuntimeCompilation%2A> and use Hot Reload instead.
35+
Remove calls to <xref:Microsoft.Extensions.DependencyInjection.RazorRuntimeCompilationMvcBuilderExtensions.AddRazorRuntimeCompilation%2A> and use [Hot Reload](/aspnet/core/test/hot-reload) instead.
3636

3737
## Affected APIs
3838

@@ -41,3 +41,7 @@ Remove calls to <xref:Microsoft.Extensions.DependencyInjection.RazorRuntimeCompi
4141
- <xref:Microsoft.Extensions.DependencyInjection.RazorRuntimeCompilationMvcCoreBuilderExtensions.AddRazorRuntimeCompilation%2A?displayProperty=fullName>
4242
- <xref:Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.FileProviderRazorProjectItem?displayProperty=fullName>
4343
- <xref:Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions?displayProperty=fullName>
44+
45+
## See also
46+
47+
- [.NET Hot Reload support for ASP.NET Core](/aspnet/core/test/hot-reload)

0 commit comments

Comments
 (0)