SmartFormat 3.0.0

.NET Standard 2.0 .NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package SmartFormat -Version 3.0.0
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.
dotnet add package SmartFormat --version 3.0.0
<PackageReference Include="SmartFormat" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SmartFormat --version 3.0.0
#r "nuget: SmartFormat, 3.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 SmartFormat as a Cake Addin
#addin nuget:?package=SmartFormat&version=3.0.0

// Install SmartFormat as a Cake Tool
#tool nuget:?package=SmartFormat&version=3.0.0

SmartFormat

What is SmartFormat?

SmartFormat is a lightweight text templating library written in C#.

It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. All formatting takes place at runtime.

SmartFormat uses extensions to provide named placeholders, localization, pluralization, gender conjugation, as well as list and time formatting. Formatting extensions can be nested.

Custom source or formatter extensions can be added easily using simple interfaces.

Features

  • High performance with low memory footprint
  • Minimal, intuitive syntax
  • Formatting takes place exclusively at runtime
  • Exact control of whitespace text output
  • string.Format compatibility mode and Smart.Format enhanced mode
  • Most common data sources work out-of-the-box
  • Many built-in formatting extensions
  • Custom formatting and source extensions are easy to integrate
  • Comprehensive documentation: current Wiki, complete xmldoc

Supported Frameworks

  • .Net Framework 4.6.1 and later
  • .Net Standard 2.0
  • .Net Standard 2.1 and later for best optimizations

Paypal-Donations

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

Showing the top 5 NuGet packages that depend on SmartFormat:

Package Downloads
SmartFormat.NET The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

SmartFormat.Extensions.Time The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

SmartFormat.Extensions.Newtonsoft.Json The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package is a SmartFormat extension for formatting Newtonsoft.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

SmartFormat.Extensions.System.Text.Json The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package is a SmartFormat extension for formatting System.Text.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

SmartFormat.Extensions.Xml The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package is a SmartFormat extension for reading and formatting System.Xml.Linq.XElement SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on SmartFormat:

Repository Stars
gitextensions/gitextensions
Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
openiddict/openiddict-core
Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
bcssov/IronyModManager
Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
Version Downloads Last updated
3.2.0 1,540 9/18/2022
3.1.0 70,242 5/17/2022
3.0.0 69,435 3/14/2022
3.0.0-rc.2 1,648 2/15/2022
3.0.0-rc.1 1,277 2/1/2022

See the change log for details of this release:
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md