ChaseLabs.Updater 0.1.7

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

// Install ChaseLabs.Updater as a Cake Tool
#tool nuget:?package=ChaseLabs.Updater&version=0.1.7

Chase Labs Configuration Utility

This is a C# Config Manager Utility that allows easy config creation and use.

To Install<br>

with Package Manager<br>

Install-Package ChaseLabs.Configuration -Version 0.0.2<br>

with Nuget Manager<br>

ChaseLabs.Configuration and Downlaod Latest

For Sample Code Visit WIKI

Getting Started

public ConfigManager Manager;

public void HandleConfig(){

    Manager = new ConfigManager("/Path/To/File.conf"); // Plain Text
    Manager = new ConfigManager("/Path/To/File.conf", true); // With Encryption and Salt is your machine name
    Manager = new ConfigManager("/Path/To/File.conf", true, "Encryption Password"); // With Encryption and Salt is "Encryption Password"

}

Creating Config Rule

The First Value of the Config Object is the Key and the second value is the Value For the initial Value should be the default value. It will be overruled if a config entry is found.

    Manager.Add(new Config("a string key", "text"));
    Manager.Add(new Config("a bool key", false));
    Manager.Add(new Config("a float key", 1.0));
    Manager.Add(new Config("an int key", 1));

Getting Config Rule

Use the Method GetConfigByKey() to get the specified config value.

To Convert a Config Value to Bool use the ParseBoolean() Method for Float use ParseFloat(), integer uses ParseInt(), double uses ParseDouble() for string Values the Default Value will suffice.

public string StringConfig = Manager.GetConfigByKey("a string key").Value;


public bool BooleanConfig = Manager.GetConfigByKey("a bool key").Value;


public float FloatConfig = Manager.GetConfigByKey("a float key").Value;


public int IntConfig = Manager.GetConfigByKey("an int key").Value;

Saving Config Rule

By setting the Config Value Equal to an appropriate value converted to string will automatically write to the config file

Manager.GetConfigByKey("a string key").Value = "Hello";

Manager.GetConfigByKey("a bool key").Value = true;

Manager.GetConfigByKey("a float key").Value = 1.5;

Manager.GetConfigByKey("an int key").Value = 1;
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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
0.1.8 552 2/13/2022
0.1.7 430 2/13/2022
0.1.6 643 8/22/2020
0.1.5 501 6/13/2020
0.1.4 473 5/5/2020
0.1.3 452 5/5/2020
0.1.2 493 4/17/2020
0.1.1 456 4/15/2020
0.1.0 451 4/15/2020
0.0.9 669 4/5/2020
0.0.8 601 4/4/2020

Updated to .net 6.0