![]() |
VOOZH | about |
dotnet add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation --version 10.0.9
NuGet\Install-Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation -Version 10.0.9
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.9" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" />Project file
paket add Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation --version 10.0.9
#r "nuget: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation, 10.0.9"
#:package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation@10.0.9
#addin nuget:?package=Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation&version=10.0.9Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation&version=10.0.9Install as a Cake Tool
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.
To start using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation in your ASP.NET Core MVC application, follow these steps:
Install the package via NuGet Package Manager or .NET CLI:
dotnet add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
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();
}
Now, you can modify Razor views in your application, and the changes will be picked up dynamically without requiring a restart:
@{
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.
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.Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation:
| Package | Downloads |
|---|---|
|
DH.Core
DH框架基类核心库 |
|
|
Abp.AspNetCore
Abp.AspNetCore |
|
|
GuoKun.CPS
国坤CPS库 |
|
|
Wkhtmltopdf.NetCore
This project implements the library wkhtmltopdf for asp net core and a view engine, working in windows, macos, linux and docker. For more information about how to use it, go to https://github.com/fpanaccia/Wkhtmltopdf.NetCore.Example |
|
|
OrchardCore.Mvc.Core
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Core Implementation for MVC application. |
Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation:
| Repository | Stars |
|---|---|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
|
OrchardCMS/OrchardCore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
|
|
|
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
|
|
|
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
|
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
|
umbraco/Umbraco-CMS
Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
|
|
|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
|
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
|
|
|
jamesmh/coravel
Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze!
|
|
|
dotnetcore/DotnetSpider
DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
|
|
|
SciSharp/LLamaSharp
A C#/.NET library to run LLM (🦙LLaMA/LLaVA) on your local device efficiently.
|
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
|
|
dotnet/aspnet-api-versioning
Provides a set of libraries which add service API versioning to ASP.NET Web API, OData with ASP.NET Web API, and ASP.NET Core.
|
|
|
SeriaWei/ZKEACMS
ZKEACMS build with .Net 8 (.Net CMS)可视化设计在线编辑内容管理系统
|
|
|
loic-sharma/BaGet
A lightweight NuGet and symbol server
|
|
|
liukuo362573/YiShaAdmin
基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观
|
|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
|
PiranhaCMS/piranha.core
Piranha CMS is the friendly editor-focused CMS for .NET that can be used both as an integrated CMS or as a headless API.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 203 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 492 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 559 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 670 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 572 | 2/10/2026 |
| 10.0.9 | 53,880 | 6/9/2026 |
| 10.0.8 | 346,581 | 5/12/2026 |
| 10.0.7 | 749,112 | 4/21/2026 |
| 10.0.6 | 169,191 | 4/14/2026 |
| 10.0.5 | 480,428 | 3/12/2026 |
| 10.0.4 | 113,391 | 3/10/2026 |
| 9.0.17 | 3,610 | 6/9/2026 |
| 9.0.16 | 14,653 | 5/12/2026 |
| 9.0.15 | 57,555 | 4/14/2026 |
| 9.0.14 | 53,106 | 3/10/2026 |
| 9.0.13 | 42,020 | 2/10/2026 |
| 8.0.28 | 9,195 | 6/9/2026 |
| 8.0.27 | 44,956 | 5/12/2026 |
| 8.0.26 | 90,577 | 4/14/2026 |
| 8.0.25 | 102,623 | 3/10/2026 |