![]() |
VOOZH | about |
dotnet add package J4JSoftware.ConsoleUtilities --version 2.0.0
NuGet\Install-Package J4JSoftware.ConsoleUtilities -Version 2.0.0
<PackageReference Include="J4JSoftware.ConsoleUtilities" Version="2.0.0" />
<PackageVersion Include="J4JSoftware.ConsoleUtilities" Version="2.0.0" />Directory.Packages.props
<PackageReference Include="J4JSoftware.ConsoleUtilities" />Project file
paket add J4JSoftware.ConsoleUtilities --version 2.0.0
#r "nuget: J4JSoftware.ConsoleUtilities, 2.0.0"
#:package J4JSoftware.ConsoleUtilities@2.0.0
#addin nuget:?package=J4JSoftware.ConsoleUtilities&version=2.0.0Install as a Cake Addin
#tool nuget:?package=J4JSoftware.ConsoleUtilities&version=2.0.0Install as a Cake Tool
Enables run-time editing of configuration parameters in console apps on an as-needed basis.
The change log is available .
This assembly targets Net 7 and has nullability enabled.
The library's repository is available on github.
The Net 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
This package is not used by any popular GitHub repositories.
updated to Net9