SharperHacks.CoreLibs.AppUtilities
1.0.0
This package has a SemVer 2.0.0 package version: 1.0.0+built.by.JwD.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SharperHacks.CoreLibs.AppUtilities --version 1.0.0
NuGet\Install-Package SharperHacks.CoreLibs.AppUtilities -Version 1.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="1.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 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SharperHacks.CoreLibs.AppUtilities, 1.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=1.0.0 // Install SharperHacks.CoreLibs.AppUtilities as a Cake Tool #tool nuget:?package=SharperHacks.CoreLibs.AppUtilities&version=1.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
- net6.0
- net7.0
- net8.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 whether trace events should be logged.
public static bool TraceEnabled { get; }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- SharperHacks.CoreLibs.Constants (>= 2.1.1)
- SharperHacks.CoreLibs.Constraints (>= 2.0.0)
-
net7.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- SharperHacks.CoreLibs.Constants (>= 2.1.1)
- SharperHacks.CoreLibs.Constraints (>= 2.0.0)
-
net8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- SharperHacks.CoreLibs.Constants (>= 2.1.1)
- SharperHacks.CoreLibs.Constraints (>= 2.0.0)
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.