Horseshoe.NET.Configuration
4.0.4
dotnet add package Horseshoe.NET.Configuration --version 4.0.4
NuGet\Install-Package Horseshoe.NET.Configuration -Version 4.0.4
<PackageReference Include="Horseshoe.NET.Configuration" Version="4.0.4" />
<PackageVersion Include="Horseshoe.NET.Configuration" Version="4.0.4" />
<PackageReference Include="Horseshoe.NET.Configuration" />
paket add Horseshoe.NET.Configuration --version 4.0.4
#r "nuget: Horseshoe.NET.Configuration, 4.0.4"
#addin nuget:?package=Horseshoe.NET.Configuration&version=4.0.4
#tool nuget:?package=Horseshoe.NET.Configuration&version=4.0.4
Horseshoe.NET.Configuration
A configuration utility for .NET. Seeks to unify the experience between .NET Framework and Core to the extent possible.
Code Examples
<appSettings>
<add key="myInt" value="90" />
<add key="myHexInt" value="5a" />
<add key="myHexInt_Annotation" value="5a[hex]" />
<add key="myHexInt_Format" value="0x5a" />
</appSettings>
// Getting an int...
Config.Get<int>("myInt"); // value="90" -> 90
// Getting a hex formatted int...
Config.Get<int>("myHexInt", // value="5a" -> 90
numberStyle: NumberStyles.HexNumber);
// Getting a hex formatted int w/ key annotation...
Config.Get<int>("myHexInt[hex]"); // value="5a" -> 90
// Getting a hex formatted int w/ data annotation or data format...
Config.Get<int>("myHexInt_Annotation"); // value="5a[hex]" -> 90
Config.Get<int>("myHexInt_Format"); // value="0x5a" -> 90
// Before Horseshoe.NET...
var stringValue = ConfigurationManager.AppSettings["myInt"];
if (stringValue != null)
return int.Parse(stringValue);
- or -
var stringValue = ConfigurationManager.AppSettings["myHexInt"];
if (stringValue != null)
return int.Parse(stringValue, NumberStyles.HexNumber);
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
.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 | 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
- Microsoft.Extensions.Primitives (>= 9.0.6)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.6)
- Microsoft.Extensions.Primitives (>= 9.0.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Horseshoe.NET.Configuration:
Package | Downloads |
---|---|
Horseshoe.NET
A suite of .NET utilities with a dual purpose: simplify coding tasks (replaces lots of boilerplate code) and offer a variety of exciting new features to .NET developers. Namespaces: ----------------- Horseshoe.NET Horseshoe.NET.Bootstrap Horseshoe.NET.Collections Horseshoe.NET.Comparison (introducing the 'Criterinator' search tool) Horseshoe.NET.ConsoleX Horseshoe.NET.ConsoleX.Plugins Horseshoe.NET.Crypto Horseshoe.NET.Data Horseshoe.NET.DataImport Horseshoe.NET.DateAndTime Horseshoe.NET.Db Horseshoe.NET.Dotnet Horseshoe.NET.Email Horseshoe.NET.Email.EmailToSms Horseshoe.NET.Format Horseshoe.NET.IO Horseshoe.NET.IO.FileFilter Horseshoe.NET.IO.FileTraversal Horseshoe.NET.IO.Ftp Horseshoe.NET.ObjectsTypesAndValues Horseshoe.NET.OleDb (.NET Framework only) Horseshoe.NET.RelayMessages Horseshoe.NET.Text Horseshoe.NET.Text.TextGrid Horseshoe.NET.Xml Horseshoe.NET.Xml.Doc More NuGet Packages: -------------------------- Horseshoe.NET.ActiveDirectory Horseshoe.NET.Caching Horseshoe.NET.Caching.Abstractions Horseshoe.NET.Configuration Horseshoe.NET.Excel Horseshoe.NET.Http[.Mvc], [.ReportingServices] and [.WebForms (.NET Framework only)] Horseshoe.NET.Jwt Horseshoe.NET.Jwt.Abstractions Horseshoe.NET.Mathematics[.Finance] and [.Geometry[.Trigonometry]] (new) Horseshoe.NET.Odbc Horseshoe.NET.OracleDb Horseshoe.NET.SecureIO Horseshoe.NET.SqlDb |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
4.0.4 | 83 | 6/26/2025 |
4.0.3 | 332 | 5/20/2025 |
4.0.1 | 405 | 2/8/2025 |
4.0.0.2 | 397 | 2/5/2025 |
4.0.0 | 172 | 2/5/2025 |
3.1.6 | 811 | 12/4/2024 |
3.1.5 | 343 | 10/24/2024 |
3.1.4 | 427 | 7/5/2024 |
3.1.3 | 470 | 6/18/2024 |
3.1.2 | 425 | 6/8/2024 |
3.1.1 | 383 | 5/20/2024 |
3.1.0 | 1,002 | 1/27/2024 |
3.0.2 | 1,805 | 5/5/2023 |
3.0.1 | 3,394 | 2/20/2023 |
3.0.0.2 | 2,326 | 2/14/2023 |
3.0.0.1 | 2,311 | 2/13/2023 |
3.0.0 | 2,339 | 2/9/2023 |
2.0.4 | 3,432 | 11/5/2022 |
2.0.3 | 3,252 | 10/31/2022 |
2.0.2 | 4,449 | 10/14/2022 |
2.0.1 | 3,331 | 10/7/2022 |
2.0.0 | 3,288 | 10/6/2022 |
1.6.2 | 3,708 | 9/12/2022 |
1.6.1 | 3,550 | 9/6/2022 |
1.6.0 | 4,341 | 9/5/2022 |
1.5.9 | 3,482 | 9/5/2022 |
1.5.8 | 3,493 | 8/24/2022 |
1.5.7 | 3,477 | 8/12/2022 |
1.5.6 | 4,014 | 7/28/2022 |
1.5.5 | 4,458 | 6/1/2022 |
1.5.4 | 4,217 | 4/15/2022 |
1.5.3 | 3,664 | 4/13/2022 |
1.5.2 | 3,688 | 4/1/2022 |
1.5.1 | 4,447 | 3/30/2022 |
1.5.0 | 3,559 | 3/4/2022 |
1.4.4.2 | 3,519 | 2/12/2022 |
1.4.4.1 | 3,072 | 2/5/2022 |
1.4.4 | 3,192 | 2/4/2022 |
1.4.3.1 | 3,094 | 1/17/2022 |
1.4.3 | 3,157 | 1/17/2022 |
1.4.2 | 2,598 | 1/6/2022 |