DKNet.Svc.Transformation
10.1.15
dotnet add package DKNet.Svc.Transformation --version 10.1.15
NuGet\Install-Package DKNet.Svc.Transformation -Version 10.1.15
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="DKNet.Svc.Transformation" Version="10.1.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.Svc.Transformation" Version="10.1.15" />
<PackageReference Include="DKNet.Svc.Transformation" />
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 DKNet.Svc.Transformation --version 10.1.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.Svc.Transformation, 10.1.15"
#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 DKNet.Svc.Transformation@10.1.15
#: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=DKNet.Svc.Transformation&version=10.1.15
#tool nuget:?package=DKNet.Svc.Transformation&version=10.1.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.Svc.Transformation
Template-token substitution: fills bracketed tokens ([Name], {Email}, <Amount>, {{Ref}}) in a string from a
plain object or dictionary, with pluggable value formatting. Not an object mapper.
Features
ITransformerService—Transform/TransformAsynca template against one or more parameter sources- Four built-in token styles (square/curly/angle/double-curly brackets), or define your own
- Configurable behavior when a token can't be resolved (
ThrowError,LeaveAsIs,Remove) - Pluggable
IValueFormatterfor bool/number/date formatting - Global parameters shared across every template
Installation
dotnet add package DKNet.Svc.Transformation
Quick Start
using DKNet.Svc.Transformation;
builder.Services.AddTransformerService();
public sealed class WelcomeEmailBuilder(ITransformerService transformer)
{
public Task<string> BuildAsync(User user) =>
transformer.TransformAsync("Hello [Name], your account [Email] is ready.", user);
}
Documentation
Full feature reference, configuration, and gotchas: https://github.com/baoduy/DKNet/blob/dev/docs/Services/DKNet.Svc.Transformation.md
| Product | Versions 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.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.1.15 | 30 | 9/1/2026 |
| 10.1.14 | 32 | 9/1/2026 |
| 10.1.13 | 44 | 8/31/2026 |
| 10.1.12 | 85 | 8/25/2026 |
| 10.1.11 | 92 | 8/24/2026 |
| 10.1.10 | 86 | 8/22/2026 |
| 10.1.9 | 97 | 8/22/2026 |
| 10.1.8 | 85 | 8/21/2026 |
| 10.1.7 | 84 | 8/21/2026 |
| 10.1.6 | 85 | 8/21/2026 |
| 10.1.5 | 104 | 8/20/2026 |
| 10.1.4 | 86 | 8/20/2026 |
| 10.1.3 | 96 | 8/19/2026 |
| 10.1.2 | 107 | 8/19/2026 |
| 10.1.1 | 86 | 8/19/2026 |
| 10.0.36 | 98 | 8/18/2026 |
| 10.0.35 | 105 | 8/5/2026 |
| 10.0.34 | 95 | 8/5/2026 |
| 10.0.33 | 97 | 8/4/2026 |
| 10.0.32 | 101 | 8/3/2026 |
Loading failed