p42BaseLib 1.0.4

dotnet add package p42BaseLib --version 1.0.4
                    
NuGet\Install-Package p42BaseLib -Version 1.0.4
                    
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="p42BaseLib" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="p42BaseLib" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="p42BaseLib" />
                    
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 p42BaseLib --version 1.0.4
                    
#r "nuget: p42BaseLib, 1.0.4"
                    
#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.
#:package p42BaseLib@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=p42BaseLib&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=p42BaseLib&version=1.0.4
                    
Install as a Cake Tool

p42BaseLib

p42BaseLib is a small .NET 9.0 library (C# 13) providing lightweight base utilities used across projects:

  • A simple, extensible logger (P42Logger + IP42Logger)
  • A fixed-size queue implementation (FixedSizedQueue)
  • Interfaces for object model storage and logging (IP42ObjectModelStore, IP42Logger)

These components are intentionally minimal and dependency-free so they can be dropped into other projects easily.

Key Features

  • P42Logger: lightweight logging abstraction suitable for console apps, libraries, or to be wired into larger logging systems.
  • FixedSizedQueue: a bounded queue that automatically evicts oldest items when capacity is exceeded.
  • Clear interfaces to help decouple implementations and make unit testing straightforward.

Requirements

  • .NET 9.0 SDK
  • C# 13.0 compatible toolchain

Building

From the repository root:

  1. Restore dependencies: dotnet restore

  2. Build the solution: dotnet build

Usage

  • Add a project reference to p42BaseLib (or include the library project in your solution).
  • Use IP42Logger to accept different logger implementations or use P42Logger directly for simple scenarios.
  • Use FixedSizedQueue<T> when you need a thread-unsafe bounded queue for short-lived buffering (wrap for thread-safety if required).

Example (conceptual):

Product Compatible and additional computed target framework versions.
.NET 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.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on p42BaseLib:

Package Downloads
p42ObjectStores

Help the access to simple blob stores like AWS.S3 or DigitalOcean Spaces

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 242 11/26/2025
1.0.3 229 11/3/2025
1.0.2 142 8/23/2025

update dotnet 10, bugfixes, changed icon