StringTokenFormatter 2.0.0

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.12 or higher.

dotnet add package StringTokenFormatter --version 2.0.0
NuGet\Install-Package StringTokenFormatter -Version 2.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.
<PackageReference Include="StringTokenFormatter" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StringTokenFormatter --version 2.0.0
#r "nuget: StringTokenFormatter, 2.0.0"
#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.
// Install StringTokenFormatter as a Cake Addin
#addin nuget:?package=StringTokenFormatter&version=2.0.0

// Install StringTokenFormatter as a Cake Tool
#tool nuget:?package=StringTokenFormatter&version=2.0.0

Provides string extension methods for replacing tokens within strings (using the format '{name}') with their specified lookup value.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on StringTokenFormatter:

Package Downloads
SimairaDigital.DevOps.Pipeline.NukeTool

NUKE build system always require pipeline build system to intiate this.

FowlFever.Conjugal

Structs and annotations for producing nice word conjugations and other linguistic metadata, such as abbreviations, units of measure, and terms of venery.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.1 933 3/19/2024
9.0.0 583 3/10/2024
8.0.0 23,505 1/15/2024
7.3.0 3,681 12/12/2023
7.2.0 2,772 12/5/2023
7.1.0 2,499 11/13/2023
7.0.0 1,095 10/29/2023
6.1.0 30,856 6/13/2023
4.1.0 616,212 12/2/2020
4.0.0 226,119 7/19/2019
3.1.0 578,150 4/1/2019
3.0.0 1,893 3/5/2019
2.0.8 3,751 1/22/2019
2.0.7 10,512 11/2/2018
2.0.6 10,410 12/22/2017
2.0.5 1,534 12/22/2017
2.0.4 1,496 12/22/2017
2.0.3 5,789 12/4/2017
2.0.2 5,385 12/4/2017
2.0.1 5,343 12/4/2017
2.0.0 5,219 12/4/2017
1.7.0 1,385 10/31/2017
1.6.1 3,862 6/9/2017
1.6.0 3,433 12/3/2015
1.5.1 1,562 7/1/2015
1.5.0 1,491 7/1/2015
1.4.0 1,428 6/18/2015
1.3.0 1,651 1/8/2015
1.2.0 1,817 1/7/2015

2.0.0
- Reworked pipeline so that each step (match, value lookup, value format) is configurable via an interface
- Removed FormatPreview as we are no longer building a complete input for string.format
- IFormatProvider is now passed via constructor
- String.FormatToken interface renames the same so compatibility should be retained
- Added mappings for Func<string> and Func<object> whereby the token isn't passed as an input
- Mapping should now be consistent between all the different format methods
1.7.0
- Added .net Standard 2.0 implementation
1.6.1
- Fixed issue whereby orphan starting tokens were stopping actual tokens from being matched
1.6.0
- Alternative token markers can now used     
1.5.1
- Bug fix on empty string when calling Format method
1.5.0
- Added support for Lazy&lt;string, object&gt;, Lazy&lt;string, string&gt;, Func&lt;string, string&gt;
- Added format preview (to show the string.Format pattern rather than the result)
1.4.0
- Added support for Func&lt;string, object&gt; as token value to support on-demand lookups
1.3.0
- Added specific extension methods for IDictionary&lt;string, string&gt;
1.2.0
- Added support for alignment padding
1.1.0
- Updated to use string.format internally so that non-string value types can be formatted (e.g. {token:D4})
- Allowed format provider to be specified
- Provided overload to allow for anonymous objects to be used
1.0.0
- Initial version.