SmartFormat 3.5.2
Prefix Reserveddotnet add package SmartFormat --version 3.5.2
NuGet\Install-Package SmartFormat -Version 3.5.2
<PackageReference Include="SmartFormat" Version="3.5.2" />
paket add SmartFormat --version 3.5.2
#r "nuget: SmartFormat, 3.5.2"
// Install SmartFormat as a Cake Addin #addin nuget:?package=SmartFormat&version=3.5.2 // Install SmartFormat as a Cake Tool #tool nuget:?package=SmartFormat&version=3.5.2
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 andSmart.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
Note
Use .Net Standard 2.1 and later for best optimizations
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- System.Memory (>= 4.6.0)
- System.ValueTuple (>= 4.5.0)
- ZString (>= 2.6.0)
-
.NETStandard 2.0
- System.Memory (>= 4.6.0)
- System.ValueTuple (>= 4.5.0)
- ZString (>= 2.6.0)
-
.NETStandard 2.1
- ZString (>= 2.6.0)
-
net6.0
- ZString (>= 2.6.0)
-
net8.0
- ZString (>= 2.6.0)
NuGet packages (16)
Showing the top 5 NuGet packages that depend on SmartFormat:
Package | Downloads |
---|---|
SmartFormat.NET
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
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
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
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
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 (4)
Showing the top 4 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).
|
|
paillave/Etl.Net
Mass processing data with a complete ETL for .net developers
|
|
bcssov/IronyModManager
Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
|
|
openmod/openmod
OpenMod .NET Plugin Framework
|
Version | Downloads | Last updated |
---|---|---|
3.5.2 | 1,702 | 12/18/2024 |
3.5.1 | 104,187 | 10/11/2024 |
3.5.0 | 184,903 | 7/29/2024 |
3.4.0 | 156,659 | 5/15/2024 |
3.3.2 | 393,314 | 1/29/2024 |
3.3.1 | 44,639 | 1/14/2024 |
3.3.0 | 318,011 | 9/25/2023 |
3.2.2 | 118,030 | 8/3/2023 |
3.2.1 | 509,087 | 2/19/2023 |
3.2.0 | 1,049,403 | 9/18/2022 |
3.1.0 | 489,141 | 5/17/2022 |
3.0.0 | 302,177 | 3/14/2022 |
3.0.0-rc.2 | 3,893 | 2/15/2022 |
3.0.0-rc.1 | 1,458 | 2/1/2022 |
Please see release notes on GitHub:
https://github.com/axuno/SmartFormat/releases/