RazorLight 2.0.0

.NET 5.0 .NET Core 3.1 .NET Standard 2.0
Install-Package RazorLight -Version 2.0.0
dotnet add package RazorLight --version 2.0.0
<PackageReference Include="RazorLight" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RazorLight --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RazorLight, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RazorLight as a Cake Addin
#addin nuget:?package=RazorLight&version=2.0.0

// Install RazorLight as a Cake Tool
#tool nuget:?package=RazorLight&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Use Razor to build your templates from strings / files / EmbeddedResources outside of ASP.NET MVC for .NET Core

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (68)

Showing the top 5 NuGet packages that depend on RazorLight:

Package Downloads

Generate emails using Razor templates. Anything you can do in ASP.NET is possible here. Uses the RazorLight project under the hood.


SimpleBrowser is a lightweight, yet highly capable browser automation engine designed for automation and testing scenarios.


Package Description


Package Description


An alias for Cake to help with displaying Task dependencies

GitHub repositories (6)

Showing the top 5 popular GitHub repositories that depend on RazorLight:

Repository Stars
All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.
Plugins for Xamarin
Asp.Net Core 6 Clean Architecture (Microservices, Modular Monolith, Monolith) samples (+Blazor, Angular 13, React 17, Vue 2.6), Domain-Driven Design, CQRS, Event Sourcing, SOLID, Asp.Net Core Identity Custom Storage, Identity Server 4 Admin UI, Entity Framework Core, Selenium E2E Testing, SignalR, Hosted Services, Health Checks, Security Headers, ...
A service for automated crash-dump analysis
A flexible and intuitive web browser engine designed for automation tasks. Built on .NET Standard 2.0.
Version Downloads Last updated
2.0.0 176,700 3/18/2022
2.0.0-rc.6 20,391 2/17/2022
2.0.0-rc.4 62,754 12/8/2021
2.0.0-rc.3 1,450,551 12/20/2020
2.0.0-rc.2 161,681 11/18/2020
2.0.0-rc.1 8,931 11/17/2020
2.0.0-beta9 535,560 6/24/2020
2.0.0-beta8 13,402 6/21/2020
2.0.0-beta7 311,948 3/27/2020
2.0.0-beta6 4,867 3/25/2020
2.0.0-beta5 30,463 3/18/2020
2.0.0-beta4 309,846 12/19/2019
2.0.0-beta3 5,888 12/18/2019
2.0.0-beta2 83,499 11/27/2019
2.0.0-beta10 22,929 9/22/2020
2.0.0-beta1 2,858,007 12/22/2017
2.0.0-alpha3 168,312 9/23/2017
2.0.0-alpha2 1,829 9/18/2017
2.0.0-alpha1 11,518 9/10/2017
1.1.0 272,587 4/30/2017
1.0.1 3,918 4/14/2017
1.0.0 19,024 4/3/2017
1.0.0-rc2 18,062 2/20/2017
1.0.0-rc1 14,749 10/13/2016
1.0.0-beta6 1,356 9/27/2016
1.0.0-beta5 3,006 8/31/2016
1.0.0-beta4 1,007 8/27/2016
1.0.0-beta3 1,647 8/12/2016
1.0.0-beta2 1,119 8/11/2016
1.0.0-beta1 1,026 8/7/2016