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 (66)

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 77,837 3/18/2022
2.0.0-rc.6 13,722 2/17/2022
2.0.0-rc.4 55,077 12/8/2021
2.0.0-rc.3 1,320,792 12/20/2020
2.0.0-rc.2 150,685 11/18/2020
2.0.0-rc.1 8,677 11/17/2020
2.0.0-beta9 511,949 6/24/2020
2.0.0-beta8 11,979 6/21/2020
2.0.0-beta7 302,839 3/27/2020
2.0.0-beta6 4,816 3/25/2020
2.0.0-beta5 28,842 3/18/2020
2.0.0-beta4 298,121 12/19/2019
2.0.0-beta3 5,671 12/18/2019
2.0.0-beta2 82,574 11/27/2019
2.0.0-beta10 22,276 9/22/2020
2.0.0-beta1 2,788,310 12/22/2017
2.0.0-alpha3 166,718 9/23/2017
2.0.0-alpha2 1,776 9/18/2017
2.0.0-alpha1 11,462 9/10/2017
1.1.0 267,322 4/30/2017
1.0.1 3,865 4/14/2017
1.0.0 18,754 4/3/2017
1.0.0-rc2 17,921 2/20/2017
1.0.0-rc1 14,687 10/13/2016
1.0.0-beta6 1,301 9/27/2016
1.0.0-beta5 2,934 8/31/2016
1.0.0-beta4 954 8/27/2016
1.0.0-beta3 1,598 8/12/2016
1.0.0-beta2 1,065 8/11/2016
1.0.0-beta1 967 8/7/2016