CCSWE.nanoFramework.Configuration 1.1.117

There is a newer version of this package available.
See the version list below for details.
dotnet add package CCSWE.nanoFramework.Configuration --version 1.1.117
                    
NuGet\Install-Package CCSWE.nanoFramework.Configuration -Version 1.1.117
                    
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="CCSWE.nanoFramework.Configuration" Version="1.1.117" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CCSWE.nanoFramework.Configuration" Version="1.1.117" />
                    
Directory.Packages.props
<PackageReference Include="CCSWE.nanoFramework.Configuration" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CCSWE.nanoFramework.Configuration --version 1.1.117
                    
#r "nuget: CCSWE.nanoFramework.Configuration, 1.1.117"
                    
#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.
#:package CCSWE.nanoFramework.Configuration@1.1.117
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CCSWE.nanoFramework.Configuration&version=1.1.117
                    
Install as a Cake Addin
#tool nuget:?package=CCSWE.nanoFramework.Configuration&version=1.1.117
                    
Install as a Cake Tool

Build License NuGet

CCSWE.nanoFramework.Configuration

Pluggable configuration management for nanoFramework applications. Configuration objects are loaded from a storage backend, validated, and surfaced through IConfigurationManager. A ConfigurationChanged event notifies listeners when a section is updated.

API

IConfigurationManager

The primary interface for reading and writing configuration:

  • Get(string section) — retrieve a configuration object by section name (cast to the expected type)
  • Save(string section, object configuration) / SaveAsync(...) — persist a configuration object
  • Clear(string section) — remove a section from storage
  • Contains(string section) — check whether a section exists
  • GetSections() — list all stored section names
  • ConfigurationChanged — event raised after a section is saved or cleared

IConfigurationStorage

Pluggable backend that the ConfigurationManager delegates persistence to:

  • ReadConfiguration(string section) — read raw configuration data
  • WriteConfiguration(string section, object configuration) — write raw configuration data
  • DeleteConfiguration(string section) — remove a section

The default backend stores configuration in the device's internal file system (I:\). File-system backed storage is available via CCSWE.nanoFramework.FileStorage.

IValidateConfiguration

Implement on a configuration class to enable validation before it is saved:

  • Validate() — returns ValidateConfigurationResult; throw or return failure to abort the save

ConfigurationManagerOptions

Options passed during DI registration:

  • UseInternalStorage — when true (default), uses the internal I:\ file system

DI Registration

Define a configuration class and bind it with defaults during startup:

public class WifiConfiguration
{
    public string Ssid { get; set; } = string.Empty;
    public string Password { get; set; } = string.Empty;
}

// In ConfigureServices:
services.AddConfigurationManager()
        .BindConfiguration("wifi", new WifiConfiguration { Ssid = "MyNetwork" });

Retrieve and save via IConfigurationManager at runtime:

// Read the current configuration
var config = (WifiConfiguration)configurationManager.Get("wifi");

// Persist changes
config.Password = "secret";
configurationManager.Save("wifi", config);

To use external file-system storage instead of the internal I:\ drive:

services.AddConfigurationManager(options => options.UseInternalStorage = false);
services.AddSingleton(typeof(IConfigurationStorage), typeof(YourConfigurationStorage));
Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.127 54 4/15/2026
1.1.124 51 4/15/2026
1.1.123 53 4/14/2026
1.1.122 51 4/13/2026
1.1.117 51 4/13/2026
1.1.114 79 4/10/2026
1.1.113 85 4/10/2026
1.1.112 91 4/9/2026
1.1.104 85 4/8/2026
1.1.103 87 4/8/2026
1.1.101 81 4/7/2026
1.1.100 78 4/7/2026
1.1.99 81 4/7/2026
1.1.97 110 4/2/2026
Loading failed