J4JSoftware.ConsoleUtilities 1.3.1

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

// Install J4JSoftware.ConsoleUtilities as a Cake Tool
#tool nuget:?package=J4JSoftware.ConsoleUtilities&version=1.3.1

Console Utilities

Enables run-time editing of configuration parameters in console apps on an as-needed basis.

This assembly targets Net5 and has nullability enabled.

For more information consult the github documentation.

The Net5 IConfiguration system is highly flexible and can assemble configuration information from many sources. However, when it's done some values needed by a console app may still be undefined or invalid. ConfigurationUpdater<> allows you to set updating rules for such parameters and prompt the user for missing or replacement values.

You do this by defining IPropertyUpdater<> classes for the properties you want to check/update.

The static class Prompters has a number of methods (e.g., GetEnum<>() in the exampel) that simplify getting values.

After defining your property updaters you create one or more ConfigurationUpdater<> classes to do the updating. You may want more than one ConfigurationUpdater<> because your console app may require different configuration rules depending upon how it's invoked.

The Property<,>() method binds a particular updater to a particular property. You can have multiple updaters bound to the same property.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
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 J4JSoftware.ConsoleUtilities:

Package Downloads
J4JSoftware.GeoProcessorApp

a console application for processing GPX, KML and KMZ files, and snapping GPS tracks to roadways

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.1 193 4/11/2023
1.6.0 172 4/4/2023
1.5.0 277 12/27/2022
1.4.0 338 11/12/2021
1.3.1 606 9/29/2021
1.3.0 429 9/28/2021
1.2.0 327 2/3/2021
1.1.0 436 1/22/2021
1.0.0 451 1/21/2021

added nuget readme