SharperHacks.CoreLibs.AppUtilities
7.0.0
This package has a SemVer 2.0.0 package version: 7.0.0+built.by.JwD.7683718.
dotnet add package SharperHacks.CoreLibs.AppUtilities --version 7.0.0
NuGet\Install-Package SharperHacks.CoreLibs.AppUtilities -Version 7.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="7.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 7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SharperHacks.CoreLibs.AppUtilities, 7.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=7.0.0 // Install SharperHacks.CoreLibs.AppUtilities as a Cake Tool #tool nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net8.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Configuration.Json (>= 9.0.0)
- Microsoft.Extensions.Hosting (>= 9.0.0)
- Serilog (>= 4.2.0)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Extensions.Logging (>= 9.0.0)
- Serilog.Settings.Configuration (>= 9.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- SharperHacks.CoreLibs.Constraints (>= 4.0.1)
-
net9.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Configuration.Json (>= 9.0.0)
- Microsoft.Extensions.Hosting (>= 9.0.0)
- Serilog (>= 4.2.0)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Extensions.Logging (>= 9.0.0)
- Serilog.Settings.Configuration (>= 9.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- SharperHacks.CoreLibs.Constraints (>= 4.0.1)
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.