nightmaregaurav.staticappsettings 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package nightmaregaurav.staticappsettings --version 1.0.1                
NuGet\Install-Package nightmaregaurav.staticappsettings -Version 1.0.1                
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="nightmaregaurav.staticappsettings" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nightmaregaurav.staticappsettings --version 1.0.1                
#r "nuget: nightmaregaurav.staticappsettings, 1.0.1"                
#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 nightmaregaurav.staticappsettings as a Cake Addin
#addin nuget:?package=nightmaregaurav.staticappsettings&version=1.0.1

// Install nightmaregaurav.staticappsettings as a Cake Tool
#tool nuget:?package=nightmaregaurav.staticappsettings&version=1.0.1                

StaticAppSettings

StaticAppSettings is a C# library that provides a convenient way to manage and access configuration settings in your ASP.NET Core application. This library is built on top of Microsoft.Extensions.Configuration and offers thread-safe static APIs to get configuration settings from appsettings sources, such as JSON files and environment variables.

Features

  • Centralized configuration management.
  • Thread-safe initialization and access to configuration settings.
  • Supports loading settings from JSON files and environment variables.

Usage

Here's how you can use StaticAppSettings to access your configuration settings: Install the package from NuGet.

using StaticAppSettings;

// ...

var connectionString = AppSettingsHelper.GetSection("ConnectionStrings:DefaultConnection").Value;

Configuration Sources

StaticAppSettings supports configuration from the following sources:

  • JSON files (e.g., appsettings.json and appsettings.{mode}.json).

License

StaticAppSettings is released under the MIT License. You can find the full license details in the LICENSE file.

Made with ❤️ by NightmareGaurav.


Open For Contribution

We welcome contributions to the StaticAppSettings project! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request on our GitHub repository. Let's make this project even better together!

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on nightmaregaurav.staticappsettings:

Package Downloads
nightmaregaurav.rediscachehelper

A C# utility library that provides caching functionality using the StackExchange.Redis library without DI. It simplifies the process of storing and retrieving data from a Redis cache, allowing for efficient and reliable caching of objects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 141 3/8/2024
1.0.2 173 9/29/2023
1.0.1 161 8/17/2023
1.0.0 196 8/16/2023