SharperHacks.CoreLibs.AppUtilities 6.0.0

This package has a SemVer 2.0.0 package version: 6.0.0+built.by.JwD.713588c.
dotnet add package SharperHacks.CoreLibs.AppUtilities --version 6.0.0                
NuGet\Install-Package SharperHacks.CoreLibs.AppUtilities -Version 6.0.0                
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="SharperHacks.CoreLibs.AppUtilities" Version="6.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharperHacks.CoreLibs.AppUtilities --version 6.0.0                
#r "nuget: SharperHacks.CoreLibs.AppUtilities, 6.0.0"                
#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 SharperHacks.CoreLibs.AppUtilities as a Cake Addin
#addin nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=6.0.0

// Install SharperHacks.CoreLibs.AppUtilities as a Cake Tool
#tool nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=6.0.0                

SharperHacks logo

AppUtilities Library for .NET

SharperHacks.CoreLibs.AppUtilites.

Some useful bits for writing console apps.

Licensed under the Apache License, Version 2.0. See LICENSE.

Contact: joseph@sharperhacks.org

Nuget: https://www.nuget.org/packages/SharperHacks.CoreLibs.AppUtilities

Targets

  • net8.0
  • net9.0

Classes

AppConfig
/// Get the product name.
public static string ProductName { get; }

/// Get the json settings file name.
public static string JsonAppSettingsFileName => $"{ProductName}.appsettings.json";

/// Get the IConfiguration instance.
public static IConfiguration Configuration { get; 

/// Get {ProductName}:Logging:LogLevel:Console, or default LogEvenLevel.
public static LogLevel DefaultConsoleLogEventLevel { get; }

/// Get {ProductName}:Logging:LogLevel:File if it exists, or default LogEvenLevel.
public static LogLevel DefaultFileLogEventLevel { get; }

/// Get {ProductName}:Logging:LogPath:Directory if not null, or return the
/// LocalApplicationData special folder.
public static string LogDirectory { get; }

/// Get {ProductName}:Logging:FilePrefix if not null, or return <see cref="AppConfig.ProductName"/>
public static string LogFilePrefix { get; }

/// Get {ProductName}:Logging:FilePostfix if not null, or return ".txt".
public static string LogFilePostfix { get; }

/// Get the production log path for the calling app. Constructed from <see cref="LogDirectory"/>
public static string ProductionLogPath { get; }

/// Get the application's root data path.
public static string RootDataPath { get; }

/// Get whether trace events should be logged.
public static bool TraceEnabled { get; }

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SharperHacks.CoreLibs.AppUtilities:

Package Downloads
SharperHacks.CoreLibs.LogWrappers

Provides MEL + Serilog initializations and extensions..

SharperHacks.CoreLibs.CommandLineInterface

Command line parser.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0 35 11/16/2024
5.2.0 53 10/19/2024
5.1.2 44 10/17/2024
5.1.1 52 10/13/2024
5.1.0 72 7/13/2024
5.0.0 60 7/11/2024
4.0.0 51 6/26/2024
3.0.0 83 1/28/2024
2.0.0 126 12/6/2023
1.0.0 64 12/4/2023