Horseshoe.NET.Configuration
4.0.0.2
dotnet add package Horseshoe.NET.Configuration --version 4.0.0.2
NuGet\Install-Package Horseshoe.NET.Configuration -Version 4.0.0.2
<PackageReference Include="Horseshoe.NET.Configuration" Version="4.0.0.2" />
paket add Horseshoe.NET.Configuration --version 4.0.0.2
#r "nuget: Horseshoe.NET.Configuration, 4.0.0.2"
// Install Horseshoe.NET.Configuration as a Cake Addin #addin nuget:?package=Horseshoe.NET.Configuration&version=4.0.0.2 // Install Horseshoe.NET.Configuration as a Cake Tool #tool nuget:?package=Horseshoe.NET.Configuration&version=4.0.0.2
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="myInt_Annotation" value="5a[hex]" />
<add key="myInt_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>("myInt_Annotation"); // value="5a[hex]" -> 90
Config.Get<int>("myInt_Format"); // value="0x5a" -> 90
// Before Horseshoe.NET...
var stringValue = ConfigurationManager.AppSettings["myInt"];
if (stringValue != null)
return int.Parse(stringValue);
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. |
.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.1)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.1)
- Microsoft.Extensions.Primitives (>= 9.0.1)
NuGet packages (8)
Showing the top 5 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 (updated) Horseshoe.NET.Compare Horseshoe.NET.ConsoleX (updated) Horseshoe.NET.ConsoleX.Plugins Horseshoe.NET.Crypto Horseshoe.NET.DataImport Horseshoe.NET.DateAndTime Horseshoe.NET.Db (updated) Horseshoe.NET.Dotnet (new) Horseshoe.NET.Email Horseshoe.NET.Email.Sms Horseshoe.NET.FrontLoader (new) Horseshoe.NET.Ftp Horseshoe.NET.IO Horseshoe.NET.IO.FileFilter Horseshoe.NET.IO.FileTraversal Horseshoe.NET.ObjectsTypesAndValues Horseshoe.NET.OleDb (.NET Framework only) Horseshoe.NET.RelayMessages (new) Horseshoe.NET.RelayProgress (new) Horseshoe.NET.Text Horseshoe.NET.Text.TextClean Horseshoe.NET.Text.TextGrid Horseshoe.NET.Xml Horseshoe.NET.Xml.Doc More NuGet Packages: -------------------------- Horseshoe.NET.ActiveDirectory Horseshoe.NET.ApplicationInsights (new) Horseshoe.NET.Caching Horseshoe.NET.Caching.Abstractions Horseshoe.NET.Configuration Horseshoe.NET.Excel Horseshoe.NET.Finance (new) Horseshoe.NET.Http[.Mvc], [.ReportingServices] and [.WebForms (.NET Framework only)] Horseshoe.NET.Jwt Horseshoe.NET.Jwt.Abstractions Horseshoe.NET.Odbc (updated) Horseshoe.NET.OracleDb (updated) Horseshoe.NET.SecureIO Horseshoe.NET.SqlDb (updated) |
|
Horseshoe.NET.OracleDb
A typesafe, object-oriented ODP.NET-based native Oracle data access utility |
|
Horseshoe.NET.Odbc
A typesafe, object-oriented ADO.NET-based ODBC data access utility. |
|
Horseshoe.NET.ActiveDirectory
Services for Active Directory authentication and LDAP querying. |
|
Horseshoe.NET.SqlDb
A typesafe, object-oriented ADO.NET-based SQL Server data access utility |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.0.2 | 0 | 2/5/2025 |
4.0.0 | 0 | 2/5/2025 |
3.1.6 | 319 | 12/4/2024 |
3.1.5 | 319 | 10/24/2024 |
3.1.4 | 395 | 7/5/2024 |
3.1.3 | 447 | 6/18/2024 |
3.1.2 | 382 | 6/8/2024 |
3.1.1 | 342 | 5/20/2024 |
3.1.0 | 954 | 1/27/2024 |
3.0.2 | 1,760 | 5/5/2023 |
3.0.1 | 3,353 | 2/20/2023 |
3.0.0.2 | 2,303 | 2/14/2023 |
3.0.0.1 | 2,285 | 2/13/2023 |
3.0.0 | 2,313 | 2/9/2023 |
2.0.4 | 3,407 | 11/5/2022 |
2.0.3 | 3,211 | 10/31/2022 |
2.0.2 | 4,404 | 10/14/2022 |
2.0.1 | 3,297 | 10/7/2022 |
2.0.0 | 3,261 | 10/6/2022 |
1.6.2 | 3,678 | 9/12/2022 |
1.6.1 | 3,522 | 9/6/2022 |
1.6.0 | 4,315 | 9/5/2022 |
1.5.9 | 3,456 | 9/5/2022 |
1.5.8 | 3,466 | 8/24/2022 |
1.5.7 | 3,441 | 8/12/2022 |
1.5.6 | 3,948 | 7/28/2022 |
1.5.5 | 4,422 | 6/1/2022 |
1.5.4 | 4,175 | 4/15/2022 |
1.5.3 | 3,618 | 4/13/2022 |
1.5.2 | 3,650 | 4/1/2022 |
1.5.1 | 4,406 | 3/30/2022 |
1.5.0 | 3,523 | 3/4/2022 |
1.4.4.2 | 3,477 | 2/12/2022 |
1.4.4.1 | 3,032 | 2/5/2022 |
1.4.4 | 3,151 | 2/4/2022 |
1.4.3.1 | 3,053 | 1/17/2022 |
1.4.3 | 3,118 | 1/17/2022 |
1.4.2 | 2,557 | 1/6/2022 |