CFG2.AppLib
1.0.24
dotnet add package CFG2.AppLib --version 1.0.24
NuGet\Install-Package CFG2.AppLib -Version 1.0.24
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="CFG2.AppLib" Version="1.0.24" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CFG2.AppLib" Version="1.0.24" />
<PackageReference Include="CFG2.AppLib" />
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 CFG2.AppLib --version 1.0.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CFG2.AppLib, 1.0.24"
#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 CFG2.AppLib@1.0.24
#: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=CFG2.AppLib&version=1.0.24
#tool nuget:?package=CFG2.AppLib&version=1.0.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CFG2.Utils.AppLib
An opinionated application configuration library. Those opinions include, but are not limited to:
- An app config lib should be simple to configure (just
dotnet add package CFG2.AppLib) - An app config lib should be simple to use (see example, but simply
App app = new();) - An app config lib should default as much as possible (see opinions above)
Some ways AppLib attempts to be easy to use include:
- Providing a consistent filesystem structure for any of your applications.
- Providing a way to get application configuration properties.
- Providing utility functionality like key value pair (KVP) management, and deduplication control.
Usage Examples
namespace CFG2.Test;
using CFG2.Utils.AppLib;
public class TestApp
{
static void Main(string[] args)
{
App app = new();
AppConfig appConfig = new AppConfig(app); // Optional, but extremely useful if you have configuration you want to load/save
Deduper deduper = new Deduper(app, "MyAppDeduper"); // Optional, but useful if you want to track things you've already processed.
app.Log("Logging a message via the default logger provided by App instance.");
app.Trace(app.Name);
app.Trace(app.Dir);
app.Trace(app.LogDir);
app.Trace(app.DataDir);
app.Trace(app.BackupDir);
app.Trace(app.SoftDeleteDir);
app.Trace(app.BackupBaseDir);
app.Trace(app.BackupRootDir);
app.Trace(app.SyncDir);
app.Trace(app.InboxDir);
app.CleanupSoftDeleteDirectory(4);
app.SoftDeleteFile(app.LogFile);
app.Trace("Goodbye");
}
}
Release Notes
1.0.24
- Pulling in updates on SysLib 1.0.12
1.0.23
- Added ability to remove AppConfig properties
- Added ability to remove KVP keys
- Added ability to remove Deduper items
1.0.20
- Improved null value handling
- Updated documentation
1.0.18
- Using retentionDays for log cleanup
- Better protection against retentionDays ⇐ 0 (i.e. don't delete anything)
1.0.17
- Added TempFile
1.0.16
- Added TempLocalDir
- Added TempDir
1.0.15
- SoftDeleteFile logging improvements
1.0.14
- Improved support for secure/encrypted app config properties.
1.0.13
- Added support for secure/encrypted app config properties.
1.0.10
- Bug fix for named app
- Bug fix for MDP Deduper
1.0.7
- Deduper Improvements
1.0.6
- Additional MigrationUtils
1.0.5
- Introduced MigrationUtils
1.0.4
- Moved ConfigProperties to AppConfig
1.0.2
- ConfigProperties added
1.0.1
- KVP added
- Deduper added
1.0.0
- Initial Release
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- CFG2.LogLib (>= 1.0.5)
- CFG2.SecLib (>= 1.0.1)
- CFG2.SQLiteLib (>= 1.0.3)
- CFG2.SysLib (>= 1.0.12)
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.0.24 | 236 | 11/25/2025 |
| 1.0.23 | 320 | 11/12/2025 |
| 1.0.22 | 323 | 11/12/2025 |
| 1.0.21 | 314 | 11/11/2025 |
| 1.0.20 | 302 | 11/10/2025 |
| 1.0.19 | 266 | 11/10/2025 |
| 1.0.18 | 180 | 11/8/2025 |
| 1.0.17 | 231 | 10/30/2025 |
| 1.0.16 | 227 | 10/30/2025 |
| 1.0.15 | 228 | 10/29/2025 |
| 1.0.14 | 225 | 7/27/2025 |
| 1.0.13 | 259 | 7/26/2025 |
| 1.0.12 | 316 | 7/20/2025 |
| 1.0.11 | 320 | 7/20/2025 |
Loading failed