Skip to main content

Compile Razor templates at build-time without a dependency on ASP.NET.

Total Downloads
140.1K
140,077
Published
Apr 6, 2026
7mo ago

Get Started

dotnet add package RazorBlade --version 1.0.0
ProductVersions
.NET
net10.0net6.0net8.0
.NET Standard
netstandard2.0

README

RazorBlade

Compile Razor templates at build-time without a dependency on ASP.NET.

RazorBlade is meant to be lightweight and self-contained: cshtml files are compiled into C# classes at build-time with a Roslyn source generator. No reference to ASP.NET is required.

See the GitHub repository for more information.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.