Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 10.0.11
About
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation is a NuGet package designed to provide runtime compilation support for Razor views in ASP.NET Core MVC applications. This package enables developers to modify and update Razor views without needing to restart the application, facilitating a more dynamic development experience.
Key Features
- Runtime compilation of Razor views in ASP.NET Core MVC applications.
- Allows developers to modify Razor views without restarting the application.
- Supports faster iteration and development cycles.
- Compatible with ASP.NET Core 3.0 and newer.
Limitations
- Isn't supported for Razor components of Blazor apps.
- Doesn't support global using directives.
- Doesn't support implicit using directives.
- Disables .NET Hot Reload.
- Is recommended for development, not for production.
How to Use
To start using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation in your ASP.NET Core MVC application, follow these steps:
Installation
Install the package via NuGet Package Manager or .NET CLI:
dotnet add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Configuration
In your Startup.cs file, configure runtime compilation for Razor views:
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews()
.AddRazorRuntimeCompilation();
}
Usage
Now, you can modify Razor views in your application, and the changes will be picked up dynamically without requiring a restart:
<!-- Example Razor view: Views/Home/Index.cshtml -->
@{
ViewData["Title"] = "Home Page";
}
<h2>@ViewData["Title"]</h2>
<p>Welcome to the ASP.NET Core MVC application!</p>
For more information on using runtime compilation for Razor views in ASP.NET Core MVC, refer to the official documentation.
Main Types
The main types provided by this library are:
RazorRuntimeCompilationMvcBuilderExtensions: Extension methods for configuring runtime compilation for Razor views.RazorRuntimeCompilationMvcOptions: Options for configuring runtime compilation settings.
Additional Documentation
Feedback & Contributing
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.
| Packages | Downloads |
|---|---|
|
OrchardCore.Admin
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Admin module creates an admin section for the site.
|
1 |
|
OrchardCore.AdminDashboard
Package Description
|
1 |
|
OrchardCore.AdminMenu
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Provides ability to create custom admin menus in Admin section.
|
1 |
|
OrchardCore.Apis.GraphQL
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core.
Provies apis using the GraphQL Specification.
|
1 |
|
OrchardCore.Application.Cms.Targets
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Converts the application into a modular OrchardCore CMS application with following themes.
- TheAdmin Theme
- SafeMode Theme
- TheAgency Theme
- TheBlog Theme
- TheComingSoon Theme
- TheTheme theme
|
1 |
|
OrchardCore.ContentManagement
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Implementation for ContentManagement
|
1 |
|
OrchardCore.DisplayManagement
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core.
Library for DisplayManagement. Provides BaseDisplayManager, Shape, Layout and Theming support.
|
1 |
|
OrchardCore.Email.Azure
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core.
Provides the configuration of email settings and a default email service utilizing Azure Communication Services (ACS).
|
1 |
|
OrchardCore.Feeds
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core.
Feeds module adds RSS feeds capabilities.
|
1 |
|
OrchardCore.Flows
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Provides content parts to create content based on Widgets.
|
1 |
|
OrchardCore.Forms
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Provides widgets and workflow activities to implement forms.
|
1 |
|
OrchardCore.HomeRoute
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Provides a way to set the route corresponding to the homepage of the site.
|
1 |
|
OrchardCore.Menu
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
The Menu module provides menu management features.
|
1 |
|
OrchardCore.Notifications
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core.
Notifications module provides a way to send notifications to a user.
|
1 |
|
OrchardCore.Queries
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Provides querying capabilities for Content.
|
1 |
|
SafeMode
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
A fail-safe theme when no other themes are available.
|
1 |
|
TheAgencyTheme
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Orchard Core CMS theme adapted for agency websites.
|
1 |
|
TheBlogTheme
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
Orchard Core CMS theme adapted for blogs.
|
1 |
|
TheComingSoonTheme
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
The Coming Soon Theme with Landing page for a project that is under construction
|
1 |
|
TheTheme
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework.
The default Theme - Can be used as base theme for new themes.
|
1 |
.NET 10.0
- Microsoft.AspNetCore.Mvc.Razor.Extensions (>= 6.0.0)
- Microsoft.CodeAnalysis.Razor (>= 6.0.0)
- Microsoft.Extensions.DependencyModel (>= 10.0.11)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0-preview.7.26381.103 | 0 | 2026-08-11 |
| 11.0.0-preview.6.26359.118 | 0 | 2026-07-14 |
| 11.0.0-preview.5.26302.115 | 0 | 2026-06-09 |
| 11.0.0-preview.4.26230.115 | 0 | 2026-05-12 |
| 11.0.0-preview.3.26207.106 | 0 | 2026-04-14 |
| 11.0.0-preview.2.26159.112 | 0 | 2026-03-10 |
| 11.0.0-preview.1.26104.118 | 0 | 2026-02-10 |
| 10.0.11 | 15 | 2026-08-27 |
| 10.0.10 | 1 | 2026-08-24 |
| 10.0.9 | 4 | 2026-07-07 |
| 10.0.8 | 1 | 2026-07-29 |
| 10.0.7 | 0 | 2026-04-21 |
| 10.0.6 | 0 | 2026-04-14 |
| 10.0.5 | 0 | 2026-03-12 |
| 10.0.4 | 0 | 2026-03-10 |
| 10.0.3 | 2 | 2026-03-09 |
| 10.0.2 | 1 | 2026-02-09 |
| 10.0.1 | 0 | 2025-12-09 |
| 10.0.0 | 0 | 2025-11-11 |
| 10.0.0-rc.2.25502.107 | 0 | 2025-10-14 |
| 10.0.0-rc.1.25451.107 | 0 | 2025-09-09 |
| 10.0.0-preview.7.25380.108 | 0 | 2025-08-12 |
| 10.0.0-preview.6.25358.103 | 0 | 2025-07-15 |
| 10.0.0-preview.5.25277.114 | 0 | 2025-06-06 |
| 10.0.0-preview.4.25258.110 | 0 | 2025-05-12 |
| 10.0.0-preview.3.25172.1 | 0 | 2025-04-10 |
| 10.0.0-preview.2.25164.1 | 0 | 2025-03-18 |
| 10.0.0-preview.1.25120.3 | 0 | 2025-02-25 |
| 9.0.19 | 0 | 2026-08-11 |
| 9.0.18 | 0 | 2026-07-14 |
| 9.0.17 | 0 | 2026-06-09 |
| 9.0.16 | 0 | 2026-05-12 |
| 9.0.15 | 0 | 2026-04-14 |
| 9.0.14 | 0 | 2026-03-10 |
| 9.0.13 | 0 | 2026-02-10 |
| 9.0.12 | 0 | 2026-01-13 |
| 9.0.11 | 0 | 2025-11-11 |
| 9.0.10 | 0 | 2025-10-14 |
| 9.0.9 | 0 | 2025-09-09 |
| 9.0.8 | 0 | 2025-08-05 |
| 9.0.7 | 0 | 2025-07-08 |
| 9.0.6 | 0 | 2025-06-10 |
| 9.0.5 | 0 | 2025-05-13 |
| 9.0.4 | 0 | 2025-04-08 |
| 9.0.3 | 0 | 2025-03-11 |
| 9.0.2 | 0 | 2025-02-11 |
| 9.0.1 | 0 | 2025-01-14 |
| 9.0.0 | 0 | 2024-11-12 |
| 9.0.0-rc.2.24474.3 | 0 | 2024-10-08 |
| 9.0.0-rc.1.24452.1 | 0 | 2024-09-10 |
| 9.0.0-preview.7.24406.2 | 0 | 2024-08-13 |
| 9.0.0-preview.6.24328.4 | 0 | 2024-07-09 |
| 9.0.0-preview.5.24306.11 | 0 | 2024-06-11 |
| 9.0.0-preview.4.24267.6 | 0 | 2024-05-21 |
| 9.0.0-preview.3.24172.13 | 0 | 2024-04-11 |
| 9.0.0-preview.2.24128.4 | 0 | 2024-03-12 |
| 9.0.0-preview.1.24081.5 | 0 | 2024-02-13 |
| 8.0.30 | 99 | 2026-08-12 |
| 8.0.29 | 192 | 2026-07-15 |
| 8.0.28 | 340 | 2026-06-10 |
| 8.0.27 | 622 | 2026-05-13 |
| 8.0.26 | 263 | 2026-04-15 |
| 8.0.25 | 305 | 2026-03-11 |
| 8.0.24 | 275 | 2026-02-11 |
| 8.0.23 | 365 | 2026-01-14 |
| 8.0.22 | 513 | 2025-11-11 |
| 8.0.21 | 4 188 | 2025-10-15 |
| 8.0.20 | 242 | 2025-09-12 |
| 8.0.19 | 0 | 2025-08-04 |
| 8.0.18 | 0 | 2025-07-08 |
| 8.0.17 | 0 | 2025-06-10 |
| 8.0.16 | 0 | 2025-05-13 |
| 8.0.15 | 0 | 2025-04-08 |
| 8.0.14 | 0 | 2025-03-11 |
| 8.0.13 | 0 | 2025-02-11 |
| 8.0.12 | 0 | 2025-01-14 |
| 8.0.11 | 0 | 2024-11-12 |
| 8.0.10 | 239 | 2025-04-04 |
| 8.0.8 | 0 | 2024-08-13 |
| 8.0.7 | 0 | 2024-07-09 |
| 8.0.6 | 0 | 2024-05-28 |
| 8.0.5 | 0 | 2024-05-14 |
| 8.0.4 | 0 | 2024-04-09 |
| 8.0.3 | 0 | 2024-03-12 |
| 8.0.2 | 0 | 2024-02-13 |
| 8.0.1 | 0 | 2024-01-09 |
| 8.0.0 | 0 | 2023-11-14 |
| 8.0.0-rc.2.23480.2 | 0 | 2023-10-10 |
| 8.0.0-rc.1.23421.29 | 0 | 2023-09-12 |
| 8.0.0-preview.7.23375.9 | 0 | 2023-08-08 |
| 8.0.0-preview.6.23329.11 | 0 | 2023-07-11 |
| 8.0.0-preview.5.23302.2 | 0 | 2023-06-13 |
| 8.0.0-preview.4.23260.4 | 0 | 2023-05-16 |
| 8.0.0-preview.3.23177.8 | 0 | 2023-04-11 |
| 8.0.0-preview.2.23153.2 | 0 | 2023-03-14 |
| 8.0.0-preview.1.23112.2 | 0 | 2023-02-21 |
| 7.0.20 | 0 | 2024-05-28 |
| 7.0.19 | 0 | 2024-05-14 |
| 7.0.18 | 0 | 2024-04-09 |
| 7.0.17 | 0 | 2024-03-12 |
| 7.0.16 | 0 | 2024-02-13 |
| 7.0.15 | 0 | 2024-01-09 |
| 7.0.14 | 0 | 2023-11-14 |
| 7.0.13 | 0 | 2023-10-24 |
| 7.0.12 | 0 | 2023-10-10 |
| 7.0.11 | 0 | 2023-09-12 |
| 7.0.10 | 1 | 2026-04-01 |
| 7.0.9 | 0 | 2023-07-11 |
| 7.0.8 | 0 | 2023-06-22 |
| 7.0.7 | 0 | 2023-06-13 |
| 7.0.5 | 0 | 2023-04-11 |
| 7.0.4 | 0 | 2023-03-14 |
| 7.0.3 | 0 | 2023-02-14 |
| 7.0.2 | 0 | 2023-01-10 |
| 7.0.1 | 0 | 2022-12-13 |
| 7.0.0 | 0 | 2022-11-07 |
| 7.0.0-rc.2.22476.2 | 0 | 2022-10-11 |
| 7.0.0-rc.1.22427.2 | 0 | 2022-09-14 |
| 7.0.0-preview.7.22376.6 | 0 | 2022-08-09 |
| 7.0.0-preview.6.22330.3 | 0 | 2022-07-12 |
| 7.0.0-preview.5.22303.8 | 0 | 2022-06-14 |
| 7.0.0-preview.4.22251.1 | 0 | 2022-05-10 |
| 7.0.0-preview.3.22178.4 | 0 | 2022-04-13 |
| 7.0.0-preview.2.22153.2 | 0 | 2022-03-14 |
| 7.0.0-preview.1.22109.13 | 0 | 2022-02-17 |
| 6.0.36 | 0 | 2024-11-12 |
| 6.0.35 | 0 | 2024-10-08 |
| 6.0.33 | 0 | 2024-08-13 |
| 6.0.32 | 0 | 2024-07-09 |
| 6.0.31 | 0 | 2024-05-28 |
| 6.0.30 | 0 | 2024-05-14 |
| 6.0.29 | 0 | 2024-04-09 |
| 6.0.28 | 0 | 2024-03-12 |
| 6.0.27 | 0 | 2024-02-13 |
| 6.0.26 | 0 | 2024-01-09 |
| 6.0.25 | 0 | 2023-11-14 |
| 6.0.24 | 0 | 2023-10-24 |
| 6.0.23 | 0 | 2023-10-10 |
| 6.0.22 | 0 | 2023-09-12 |
| 6.0.21 | 0 | 2023-08-08 |
| 6.0.20 | 0 | 2023-07-11 |
| 6.0.19 | 0 | 2023-06-22 |
| 6.0.18 | 0 | 2023-06-13 |
| 6.0.16 | 0 | 2023-04-11 |
| 6.0.15 | 0 | 2023-03-14 |
| 6.0.14 | 0 | 2023-02-14 |
| 6.0.13 | 0 | 2023-01-10 |
| 6.0.12 | 0 | 2022-12-13 |
| 6.0.11 | 0 | 2022-11-07 |
| 6.0.10 | 0 | 2022-10-11 |
| 6.0.9 | 0 | 2022-09-13 |
| 6.0.8 | 0 | 2022-08-09 |
| 6.0.7 | 0 | 2022-07-12 |
| 6.0.6 | 0 | 2022-06-14 |
| 6.0.5 | 0 | 2022-05-10 |
| 6.0.4 | 0 | 2022-04-11 |
| 6.0.3 | 0 | 2022-03-08 |
| 6.0.2 | 0 | 2022-02-08 |
| 6.0.1 | 0 | 2021-12-14 |
| 6.0.0 | 0 | 2021-11-08 |
| 6.0.0-rc.2.21480.10 | 0 | 2021-10-12 |
| 6.0.0-rc.1.21452.15 | 0 | 2021-09-14 |
| 6.0.0-preview.7.21378.6 | 0 | 2021-08-10 |
| 6.0.0-preview.6.21355.2 | 0 | 2021-07-14 |
| 6.0.0-preview.5.21301.17 | 0 | 2021-06-15 |
| 6.0.0-preview.4.21253.5 | 0 | 2021-05-24 |
| 6.0.0-preview.3.21201.13 | 0 | 2021-04-08 |
| 6.0.0-preview.2.21154.6 | 0 | 2021-03-11 |
| 6.0.0-preview.1.21103.6 | 0 | 2021-02-12 |
| 5.0.17 | 0 | 2022-05-10 |
| 5.0.16 | 0 | 2022-04-11 |
| 5.0.15 | 0 | 2022-03-08 |
| 5.0.14 | 0 | 2022-02-08 |
| 5.0.13 | 0 | 2021-12-14 |
| 5.0.12 | 0 | 2021-11-07 |
| 5.0.11 | 0 | 2021-10-12 |
| 5.0.10 | 0 | 2021-09-14 |
| 5.0.9 | 0 | 2021-08-10 |
| 5.0.8 | 0 | 2021-07-13 |
| 5.0.7 | 0 | 2021-06-08 |
| 5.0.6 | 0 | 2021-05-11 |
| 5.0.5 | 0 | 2021-04-06 |
| 5.0.4 | 0 | 2021-03-09 |
| 5.0.3 | 0 | 2021-02-09 |
| 5.0.2 | 0 | 2021-01-12 |
| 5.0.1 | 0 | 2020-12-08 |
| 5.0.0 | 0 | 2020-11-09 |
| 5.0.0-rc.2.20475.17 | 0 | 2020-10-13 |
| 5.0.0-rc.1.20451.17 | 0 | 2020-09-14 |
| 5.0.0-preview.8.20414.8 | 0 | 2020-08-25 |
| 5.0.0-preview.7.20365.19 | 0 | 2020-07-21 |
| 5.0.0-preview.6.20312.15 | 0 | 2020-06-25 |
| 5.0.0-preview.5.20279.2 | 0 | 2020-06-10 |
| 5.0.0-preview.4.20257.10 | 0 | 2020-05-18 |
| 5.0.0-preview.3.20215.14 | 0 | 2020-04-23 |
| 5.0.0-preview.2.20167.3 | 0 | 2020-04-02 |
| 5.0.0-preview.1.20124.5 | 0 | 2020-03-16 |
| 3.1.32 | 0 | 2022-12-13 |
| 3.1.31 | 0 | 2022-11-08 |
| 3.1.30 | 0 | 2022-10-11 |
| 3.1.29 | 0 | 2022-09-13 |
| 3.1.28 | 0 | 2022-08-09 |
| 3.1.27 | 0 | 2022-07-12 |
| 3.1.26 | 0 | 2022-06-14 |
| 3.1.25 | 0 | 2022-05-10 |
| 3.1.24 | 0 | 2022-04-11 |
| 3.1.23 | 0 | 2022-03-08 |
| 3.1.22 | 0 | 2021-12-14 |
| 3.1.21 | 0 | 2021-11-07 |
| 3.1.20 | 0 | 2021-10-11 |
| 3.1.19 | 0 | 2021-09-14 |
| 3.1.18 | 0 | 2021-08-10 |
| 3.1.17 | 0 | 2021-07-13 |
| 3.1.16 | 0 | 2021-06-08 |
| 3.1.15 | 0 | 2021-05-11 |
| 3.1.14 | 0 | 2021-04-06 |
| 3.1.13 | 0 | 2021-03-09 |
| 3.1.12 | 0 | 2021-02-09 |
| 3.1.11 | 0 | 2021-01-12 |
| 3.1.10 | 0 | 2020-11-09 |
| 3.1.9 | 0 | 2020-10-13 |
| 3.1.8 | 0 | 2020-09-08 |
| 3.1.7 | 0 | 2020-08-11 |
| 3.1.6 | 0 | 2020-07-14 |
| 3.1.5 | 0 | 2020-06-09 |
| 3.1.4 | 0 | 2020-05-12 |
| 3.1.3 | 0 | 2020-03-24 |
| 3.1.2 | 0 | 2020-02-18 |
| 3.1.1 | 0 | 2020-01-14 |
| 3.1.0 | 0 | 2019-12-03 |
| 3.1.0-preview3.19555.2 | 0 | 2019-11-13 |
| 3.1.0-preview2.19528.8 | 0 | 2019-11-01 |
| 3.1.0-preview1.19508.20 | 0 | 2019-10-15 |
| 3.0.3 | 0 | 2020-02-18 |
| 3.0.2 | 0 | 2020-01-14 |
| 3.0.0 | 0 | 2019-09-23 |
| 3.0.0-rc1.19457.4 | 0 | 2019-09-16 |
| 3.0.0-preview9.19424.4 | 0 | 2019-09-04 |
| 3.0.0-preview8.19405.7 | 0 | 2019-08-13 |
| 3.0.0-preview7.19365.7 | 0 | 2019-07-23 |
| 3.0.0-preview6.19307.2 | 0 | 2019-06-12 |
| 3.0.0-preview5-19227-01 | 0 | 2019-05-06 |
| 3.0.0-preview4-19216-03 | 0 | 2019-04-18 |
| 3.0.0-preview3-19153-02 | 0 | 2019-03-06 |