Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 10.0.0-preview.1.25120.3

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation --version 10.0.0-preview.1.25120.3                
NuGet\Install-Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation -Version 10.0.0-preview.1.25120.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.0-preview.1.25120.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation --version 10.0.0-preview.1.25120.3                
#r "nuget: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation, 10.0.0-preview.1.25120.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation as a Cake Addin
#addin nuget:?package=Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation&version=10.0.0-preview.1.25120.3&prerelease

// Install Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation&version=10.0.0-preview.1.25120.3&prerelease                

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

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:


@{
    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.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (459)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation:

Package Downloads
Umbraco.Cms.Web.Common

Contains the web assembly needed to run Umbraco CMS.

Volo.Abp.AspNetCore.Mvc

Package Description

Abp.AspNetCore

Abp.AspNetCore

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.

GitHub repositories (126)

Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation:

Repository Stars
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
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.
Version Downloads Last updated
10.0.0-preview.2.25164.1 276 3/18/2025
10.0.0-preview.1.25120.3 713 2/25/2025
9.0.3 39,149 3/11/2025
9.0.2 121,202 2/11/2025
9.0.1 129,775 1/14/2025
9.0.0 513,713 11/12/2024
9.0.0-rc.2.24474.3 11,595 10/8/2024
9.0.0-rc.1.24452.1 6,498 9/10/2024
9.0.0-preview.7.24406.2 1,402 8/13/2024
9.0.0-preview.6.24328.4 9,056 7/9/2024
9.0.0-preview.5.24306.11 1,154 6/11/2024
9.0.0-preview.4.24267.6 763 5/21/2024
9.0.0-preview.3.24172.13 1,456 4/11/2024
9.0.0-preview.2.24128.4 1,161 3/12/2024
9.0.0-preview.1.24081.5 2,887 2/13/2024
8.0.14 35,378 3/11/2025
8.0.13 125,961 2/11/2025
8.0.12 212,397 1/14/2025
8.0.11 795,407 11/12/2024
8.0.10 957,461 10/8/2024
8.0.8 1,477,278 8/13/2024
8.0.7 715,385 7/9/2024
8.0.6 1,082,642 5/28/2024
8.0.5 385,305 5/14/2024
8.0.4 1,325,189 4/9/2024
8.0.3 700,721 3/12/2024
8.0.2 626,975 2/13/2024
8.0.1 1,624,443 1/9/2024
8.0.0 2,700,180 11/14/2023
8.0.0-rc.2.23480.2 23,002 10/10/2023
8.0.0-rc.1.23421.29 8,630 9/12/2023
8.0.0-preview.7.23375.9 3,449 8/8/2023
8.0.0-preview.6.23329.11 4,615 7/11/2023
8.0.0-preview.5.23302.2 3,136 6/13/2023
8.0.0-preview.4.23260.4 219,947 5/16/2023
8.0.0-preview.3.23177.8 2,858 4/11/2023
8.0.0-preview.2.23153.2 3,966 3/14/2023
8.0.0-preview.1.23112.2 2,935 2/21/2023
7.0.20 83,614 5/28/2024
7.0.19 17,735 5/14/2024
7.0.18 41,317 4/9/2024
7.0.17 76,072 3/12/2024
7.0.16 64,830 2/13/2024
7.0.15 121,379 1/9/2024
7.0.14 278,263 11/14/2023
7.0.13 275,003 10/24/2023
7.0.12 186,457 10/10/2023
7.0.11 352,461 9/12/2023
7.0.10 676,463 8/8/2023
7.0.9 438,704 7/11/2023
7.0.8 253,754 6/22/2023
7.0.7 635,152 6/13/2023
7.0.5 870,469 4/11/2023
7.0.4 468,157 3/14/2023
7.0.3 437,679 2/14/2023
7.0.2 764,612 1/10/2023
7.0.1 631,522 12/13/2022
7.0.0 1,979,097 11/7/2022
7.0.0-rc.2.22476.2 16,289 10/11/2022
7.0.0-rc.1.22427.2 3,763 9/14/2022
7.0.0-preview.7.22376.6 4,171 8/9/2022
7.0.0-preview.6.22330.3 1,702 7/12/2022
7.0.0-preview.5.22303.8 1,508 6/14/2022
7.0.0-preview.4.22251.1 2,016 5/10/2022
7.0.0-preview.3.22178.4 1,501 4/13/2022
7.0.0-preview.2.22153.2 2,058 3/14/2022
7.0.0-preview.1.22109.13 1,753 2/17/2022
6.0.36 60,002 11/12/2024
6.0.35 41,597 10/8/2024
6.0.33 84,571 8/13/2024
6.0.32 132,640 7/9/2024
6.0.31 87,485 5/28/2024
6.0.30 45,264 5/14/2024
6.0.29 112,649 4/9/2024
6.0.28 88,654 3/12/2024
6.0.27 1,738,152 2/13/2024
6.0.26 267,148 1/9/2024
6.0.25 666,199 11/14/2023
6.0.24 421,525 10/24/2023
6.0.23 148,590 10/10/2023
6.0.22 263,140 9/12/2023
6.0.21 379,831 8/8/2023
6.0.20 257,451 7/11/2023
6.0.19 183,056 6/22/2023
6.0.18 93,498 6/13/2023
6.0.16 830,007 4/11/2023
6.0.15 607,831 3/14/2023
6.0.14 389,425 2/14/2023
6.0.13 580,026 1/10/2023
6.0.12 1,531,148 12/13/2022
6.0.11 892,872 11/7/2022
6.0.10 1,562,302 10/11/2022
6.0.9 1,008,023 9/13/2022
6.0.8 1,314,426 8/9/2022
6.0.7 1,755,048 7/12/2022
6.0.6 978,466 6/14/2022
6.0.5 5,249,746 5/10/2022
6.0.4 1,254,169 4/11/2022
6.0.3 1,208,900 3/8/2022
6.0.2 835,239 2/8/2022
6.0.1 2,157,332 12/14/2021
6.0.0 3,020,330 11/8/2021
6.0.0-rc.2.21480.10 18,166 10/12/2021
6.0.0-rc.1.21452.15 20,010 9/14/2021
6.0.0-preview.7.21378.6 12,741 8/10/2021
6.0.0-preview.6.21355.2 7,269 7/14/2021
6.0.0-preview.5.21301.17 6,664 6/15/2021
6.0.0-preview.4.21253.5 2,616 5/24/2021
6.0.0-preview.3.21201.13 11,574 4/8/2021
6.0.0-preview.2.21154.6 2,006 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 3,081 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 504,453 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 70,169 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 153,272 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 145,270 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 484,039 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 491,031 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 2,598,741 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,715,615 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 866,351 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,044,914 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,330,985 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 899,383 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 906,169 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 853,051 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,044,782 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 699,651 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 569,114 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,876,056 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 18,397 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 12,326 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 3,708 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 3,729 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 4,345 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 1,290 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 5,575 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 2,650 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 2,020 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 2,195 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 429,509 12/13/2022
3.1.31 50,109 11/8/2022
3.1.30 33,713 10/11/2022
3.1.29 37,746 9/13/2022
3.1.28 56,859 8/9/2022
3.1.27 60,537 7/12/2022
3.1.26 71,621 6/14/2022
3.1.25 73,001 5/10/2022
3.1.24 70,144 4/11/2022
3.1.23 107,118 3/8/2022
3.1.22 768,416 12/14/2021
3.1.21 191,328 11/7/2021
3.1.20 199,064 10/11/2021
3.1.19 257,067 9/14/2021
3.1.18 442,251 8/10/2021
3.1.17 288,279 7/13/2021
3.1.16 348,482 6/8/2021
3.1.15 473,190 5/11/2021
3.1.14 409,060 4/6/2021
3.1.13 364,729 3/9/2021
3.1.12 403,450 2/9/2021
3.1.11 458,844 1/12/2021
3.1.10 1,220,856 11/9/2020
3.1.9 1,246,156 10/13/2020
3.1.8 1,286,542 9/8/2020
3.1.7 859,767 8/11/2020
3.1.6 1,935,839 7/14/2020
3.1.5 2,217,573 6/9/2020
3.1.4 1,281,639 5/12/2020
3.1.3 2,567,168 3/24/2020
3.1.2 1,044,939 2/18/2020
3.1.1 1,453,643 1/14/2020
3.1.0 3,705,063 12/3/2019
3.1.0-preview3.19555.2 5,538 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 1,034 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,187 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 72,624 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 37,077 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 4,509,726 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 4,387 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 16,689 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 10,544 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 5,770 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 5,885 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 3,510 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 789 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 1,613 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.