ConfigurationFileIO 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ConfigurationFileIO --version 1.0.1
NuGet\Install-Package ConfigurationFileIO -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="ConfigurationFileIO" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConfigurationFileIO --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConfigurationFileIO, 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 ConfigurationFileIO as a Cake Addin #addin nuget:?package=ConfigurationFileIO&version=1.0.1 // Install ConfigurationFileIO as a Cake Tool #tool nuget:?package=ConfigurationFileIO&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ConfigurationFileIO
Store settings of an application to a configuration file. Settings can have a category, a name and a value. Retrieve settings by specifying the category and name. Custom delimiter supported in case the default one (=) is required in the settings names.
Supported value types: string, int, double, boolean.
Usage/Examples
// Read settings from a configuration file.
ConfigurationFile configurationFile = new ConfigurationFile("settings.cfg");
configurationFile.ReadSettings();
// Get the value for a setting with name AutoLogin in category LogIn.
bool autoLogin = configurationFile.getSettingValue("LogIn", "AutoLogin").AsBoolean();
// Change the value.
configurationFile.setSettingValue("LogIn", "AutoLogin", true);
// Add a new setting AutoLoginUsername.
ConfigurationFile.AddNewSetting("LogIn", "AutoLoginUsername", "User");
// Save the configuration file with the changes.
configurationFile.SaveSettings();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.