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" />
<PackageReference Include="p42BaseLib" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=p42BaseLib&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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:
Restore dependencies: dotnet restore
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 | Versions 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.
update dotnet 10, bugfixes, changed icon