SmartFormat.NET
3.5.2
Prefix Reserved
dotnet add package SmartFormat.NET --version 3.5.2
NuGet\Install-Package SmartFormat.NET -Version 3.5.2
<PackageReference Include="SmartFormat.NET" Version="3.5.2" />
paket add SmartFormat.NET --version 3.5.2
#r "nuget: SmartFormat.NET, 3.5.2"
// Install SmartFormat.NET as a Cake Addin #addin nuget:?package=SmartFormat.NET&version=3.5.2 // Install SmartFormat.NET as a Cake Tool #tool nuget:?package=SmartFormat.NET&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
- SmartFormat (>= 3.5.2)
- SmartFormat.Extensions.Newtonsoft.Json (>= 3.5.2)
- SmartFormat.Extensions.System.Text.Json (>= 3.5.2)
- SmartFormat.Extensions.Time (>= 3.5.2)
- SmartFormat.Extensions.Xml (>= 3.5.2)
-
.NETStandard 2.0
- SmartFormat (>= 3.5.2)
- SmartFormat.Extensions.Newtonsoft.Json (>= 3.5.2)
- SmartFormat.Extensions.System.Text.Json (>= 3.5.2)
- SmartFormat.Extensions.Time (>= 3.5.2)
- SmartFormat.Extensions.Xml (>= 3.5.2)
-
.NETStandard 2.1
- SmartFormat (>= 3.5.2)
- SmartFormat.Extensions.Newtonsoft.Json (>= 3.5.2)
- SmartFormat.Extensions.System.Text.Json (>= 3.5.2)
- SmartFormat.Extensions.Time (>= 3.5.2)
- SmartFormat.Extensions.Xml (>= 3.5.2)
-
net6.0
- SmartFormat (>= 3.5.2)
- SmartFormat.Extensions.Newtonsoft.Json (>= 3.5.2)
- SmartFormat.Extensions.System.Text.Json (>= 3.5.2)
- SmartFormat.Extensions.Time (>= 3.5.2)
- SmartFormat.Extensions.Xml (>= 3.5.2)
-
net8.0
- SmartFormat (>= 3.5.2)
- SmartFormat.Extensions.Newtonsoft.Json (>= 3.5.2)
- SmartFormat.Extensions.System.Text.Json (>= 3.5.2)
- SmartFormat.Extensions.Time (>= 3.5.2)
- SmartFormat.Extensions.Xml (>= 3.5.2)
NuGet packages (71)
Showing the top 5 NuGet packages that depend on SmartFormat.NET:
Package | Downloads |
---|---|
Takenet.MessagingHub.Client
The C# SDK for the Messaging Hub |
|
Take.Elephant
Elephant storage library |
|
Take.Blip.Client
BLiP C# client |
|
Takenet.Elephant
Elephant storage library |
|
Cogniteam.Nimbus.Core
Package Description |
GitHub repositories (11)
Showing the top 5 popular GitHub repositories that depend on SmartFormat.NET:
Repository | Stars |
---|---|
canton7/SyncTrayzor
Windows tray utility / filesystem watcher / launcher for Syncthing
|
|
snatch-dev/Convey
A simple recipe for .NET Core microservices.
|
|
dukus/digiCamControl
DSLR camera remote control open source software
|
|
XAMLMarkupExtensions/WPFLocalizeExtension
LocalizationExtension is a the easy way to localize any type of DependencyProperties or native Properties on DependencyObjects
|
|
fernandreu/office-ribbonx-editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
|
Version | Downloads | Last updated |
---|---|---|
3.5.2 | 0 | 12/18/2024 |
3.5.1 | 75,823 | 10/11/2024 |
3.5.0 | 145,819 | 7/29/2024 |
3.4.0 | 91,514 | 5/15/2024 |
3.3.2 | 258,615 | 1/29/2024 |
3.3.1 | 35,227 | 1/14/2024 |
3.3.0 | 199,071 | 9/25/2023 |
3.2.2 | 84,037 | 8/3/2023 |
3.2.1 | 406,562 | 2/19/2023 |
3.2.0 | 419,464 | 9/18/2022 |
3.1.0 | 443,548 | 5/17/2022 |
3.0.0 | 196,447 | 3/14/2022 |
3.0.0-rc.2 | 3,176 | 2/15/2022 |
3.0.0-rc.1 | 1,871 | 2/1/2022 |
3.0.0-alpha.5 | 1,178 | 12/3/2021 |
3.0.0-alpha.4 | 1,822 | 10/25/2021 |
3.0.0-alpha.3 | 1,036 | 9/20/2021 |
3.0.0-alpha.2 | 746 | 9/5/2021 |
3.0.0-alpha.1 | 2,933 | 8/29/2021 |
2.7.3 | 436,128 | 6/28/2022 |
2.7.2 | 377,422 | 12/26/2021 |
2.7.1 | 310,011 | 10/21/2021 |
2.7.0 | 1,328,704 | 4/10/2021 |
2.6.2 | 356,421 | 2/17/2021 |
2.6.1 | 10,207 | 2/12/2021 |
2.5.3 | 987,739 | 11/10/2020 |
2.5.3-preview1 | 4,393 | 11/2/2020 |
2.5.2 | 382,272 | 6/16/2020 |
2.5.1 | 17,222 | 6/9/2020 |
2.5.0 | 824,495 | 11/2/2019 |
2.4.2 | 1,265,183 | 2/9/2019 |
2.4.1 | 56,261 | 1/5/2019 |
2.4.0 | 28,444 | 1/4/2019 |
2.3.1.1 | 183,601 | 11/15/2018 |
2.3.0 | 803,672 | 6/13/2018 |
2.2.0 | 170,436 | 2/17/2018 |
2.1.0.2 | 1,096,024 | 8/15/2017 |
2.1.0.1 | 577,313 | 6/27/2017 |
2.0.0 | 434,778 | 12/4/2016 |
1.7.1.1 | 16,785 | 11/28/2016 |
1.6.1 | 145,080 | 3/4/2015 |
1.6.0 | 5,764 | 3/4/2015 |
1.5.0 | 5,727 | 2/12/2015 |
1.4.0 | 4,250 | 2/12/2015 |
1.3.0 | 4,228 | 2/12/2015 |
1.2.0 | 8,759 | 2/7/2015 |
1.1.0 | 36,021 | 2/20/2014 |
1.0.0 | 24,061 | 5/15/2013 |
Please see release notes on GitHub:
https://github.com/axuno/SmartFormat/releases/