NetBricks 2.0.0

dotnet add package NetBricks --version 2.0.0
                    
NuGet\Install-Package NetBricks -Version 2.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="NetBricks" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetBricks" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NetBricks" />
                    
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 NetBricks --version 2.0.0
                    
#r "nuget: NetBricks, 2.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.
#addin nuget:?package=NetBricks&version=2.0.0
                    
Install NetBricks as a Cake Addin
#tool nuget:?package=NetBricks&version=2.0.0
                    
Install NetBricks as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 110 5/6/2025
1.9.2 746 4/30/2024
1.9.1 135 4/29/2024
1.9.0 1,173 4/22/2024
1.8.0 217 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,100 9/8/2020
1.2.0 823 7/7/2020
1.1.0 550 7/7/2020
1.0.0 933 5/21/2020