NetBricks 2.0.0
dotnet add package NetBricks --version 2.0.0
NuGet\Install-Package NetBricks -Version 2.0.0
<PackageReference Include="NetBricks" Version="2.0.0" />
<PackageVersion Include="NetBricks" Version="2.0.0" />
<PackageReference Include="NetBricks" />
paket add NetBricks --version 2.0.0
#r "nuget: NetBricks, 2.0.0"
#addin nuget:?package=NetBricks&version=2.0.0
#tool nuget:?package=NetBricks&version=2.0.0
NetBricks
I found myself using a lot of the same code and techniques from project-to-project, however, I was always copying the code and then it would deviate. I decided instead to take the best components from all my recent solutions and put the base level components into something I am calling NetBricks.
Included (click on the links to see the documentation):
SingleLineConsoleLogger: A high performance console logger that will print out all log messages on a single line.
DefaultAzureCredential: While a standard Microsoft library, I have included a wrapper that will allow you to configure the DefaultAzureCredential in an easy way.
AzureAppConfig: A wrapper around the Azure App Configuration library that brings in hierarchical configuration as environment variables. This can be used in conjunction with the Configuration Management capabilities.
Configuration Management: A configuration management solution that allows you to pull values from environment variables, Azure App Configuration, and Azure Key Vault. It will enforce and conform values as needed before printing them out at startup.
Extensions: A collection of extensions for conforming strings to various datatypes. These are used in the configuration management solution.
Services
The entire solution depends on Dependency Injection. If you want everything, you should inject the following services...
services.AddSingleLineConsoleLogger();
services.AddDefaultAzureCredential();
services.AddAzureAppConfig();
services.AddConfig<I, T>();
All of these add methods have a property called logMethod
which can be set to ILogger
(default) or Console
. When set to ILogger
, the settings used by this component will be logged to the ILogger, otherwise those settings will be printed directly to the console.
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 was computed. 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. |
-
net8.0
- Azure.Identity (>= 1.13.2)
- Microsoft.Extensions.Configuration (>= 9.0.4)
- Microsoft.Extensions.DependencyInjection (>= 9.0.4)
- Microsoft.Extensions.Hosting (>= 9.0.4)
- Microsoft.Extensions.Http (>= 9.0.4)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NetBricks:
Package | Downloads |
---|---|
CasAuth
The Comprehensive Authentication Solution (or CasAuth) was developed to provide an opinionated way to handle user and service authentication for APIs. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 108 | 5/6/2025 |
1.9.2 | 744 | 4/30/2024 |
1.9.1 | 133 | 4/29/2024 |
1.9.0 | 1,171 | 4/22/2024 |
1.8.0 | 215 | 4/19/2024 |
1.7.2 | 9,080 | 1/3/2023 |
1.7.1 | 2,734 | 7/8/2022 |
1.7.0 | 4,426 | 7/8/2022 |
1.6.2 | 2,580 | 6/15/2022 |
1.6.1 | 651 | 6/15/2022 |
1.6.0 | 3,768 | 2/28/2022 |
1.5.0 | 1,610 | 1/19/2022 |
1.4.1 | 696 | 1/19/2022 |
1.4.0 | 670 | 1/19/2022 |
1.3.0 | 1,096 | 9/8/2020 |
1.2.0 | 819 | 7/7/2020 |
1.1.0 | 546 | 7/7/2020 |
1.0.0 | 929 | 5/21/2020 |