MailStencil.Core 0.1.0-preview.1

This is a prerelease version of MailStencil.Core.
dotnet add package MailStencil.Core --version 0.1.0-preview.1
                    
NuGet\Install-Package MailStencil.Core -Version 0.1.0-preview.1
                    
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="MailStencil.Core" Version="0.1.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MailStencil.Core" Version="0.1.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="MailStencil.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MailStencil.Core --version 0.1.0-preview.1
                    
#r "nuget: MailStencil.Core, 0.1.0-preview.1"
                    
#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.
#:package MailStencil.Core@0.1.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MailStencil.Core&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MailStencil.Core&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

MailStencil.Core

Core contracts and runtime orchestration for storage-agnostic, strongly typed email templates on .NET 10.

services.AddMailStencil(options =>
{
    options.DefaultCulture = "en-US";
    options.CacheDuration = TimeSpan.FromMinutes(5);
});

Applications compose one ITemplateReader with an ITemplateRenderer. The runtime performs culture fallback through CultureInfo.Parent, caches successful source snapshots for an absolute duration, and keeps reading, rendering, validation, and storage responsibilities separate. This package does not send email and contains no storage provider or template engine.

MailStencil does not automatically sanitize rendered content or email headers. Applications must escape untrusted HTML values and enforce the header policy required by their email transport.

Project documentation and samples are available in the MailStencil repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MailStencil.Core:

Package Downloads
MailStencil.AzureBlob

Read-only Azure Blob Storage template provider for MailStencil on .NET 10.

MailStencil.FileSystem

Restrictive, read-only filesystem template storage for MailStencil on .NET 10.

MailStencil.Scriban

Safe, bounded Scriban rendering and static validation for MailStencil email templates on .NET 10.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.1 0 9/10/2026

First public preview candidate of MailStencil's read-only runtime, renderer, and storage providers.