SharperHacks.CoreLibs.AppUtilities 8.0.3

Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.0.3+built.by.JwD.9820ba1.
dotnet add package SharperHacks.CoreLibs.AppUtilities --version 8.0.3
                    
NuGet\Install-Package SharperHacks.CoreLibs.AppUtilities -Version 8.0.3
                    
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="8.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharperHacks.CoreLibs.AppUtilities" Version="8.0.3" />
                    
Directory.Packages.props
<PackageReference Include="SharperHacks.CoreLibs.AppUtilities" />
                    
Project file
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 SharperHacks.CoreLibs.AppUtilities --version 8.0.3
                    
#r "nuget: SharperHacks.CoreLibs.AppUtilities, 8.0.3"
                    
#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.
#addin nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=8.0.3
                    
Install SharperHacks.CoreLibs.AppUtilities as a Cake Addin
#tool nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=8.0.3
                    
Install SharperHacks.CoreLibs.AppUtilities as a Cake Tool

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.  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. 
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
8.0.3 62 19 days ago
8.0.2 45 19 days ago
7.0.2 78 a month ago
7.0.1 180 3 months ago
7.0.0 79 4 months ago
6.0.0 74 5 months ago
5.2.0 72 6 months ago
5.1.2 59 6 months ago
5.1.1 69 6 months ago
5.1.0 95 9 months ago
5.0.0 77 9 months ago
4.0.0 66 10 months ago
3.0.0 99 1/28/2024
2.0.0 138 12/6/2023
1.0.0 77 12/4/2023