NexusLabs.Framework
0.2.2
dotnet add package NexusLabs.Framework --version 0.2.2
NuGet\Install-Package NexusLabs.Framework -Version 0.2.2
<PackageReference Include="NexusLabs.Framework" Version="0.2.2" />
<PackageVersion Include="NexusLabs.Framework" Version="0.2.2" />
<PackageReference Include="NexusLabs.Framework" />
paket add NexusLabs.Framework --version 0.2.2
#r "nuget: NexusLabs.Framework, 0.2.2"
#:package NexusLabs.Framework@0.2.2
#addin nuget:?package=NexusLabs.Framework&version=0.2.2
#tool nuget:?package=NexusLabs.Framework&version=0.2.2
NexusLabs.Framework (and friends)
A multi-package repository for cross-cutting NexusLabs C# tooling. Currently ships:
| Package | Purpose |
|---|---|
NexusLabs.Framework |
Runtime utilities: result pattern (Tried/TriedEx/TriedNullEx), Try orchestration, stream wrappers, AsyncSemaphoreLease concurrency primitive, async event-handler helpers, async ADO.NET interface shapes, process diagnostics. |
NexusLabs.Framework.Analyzers |
Roslyn analyzers for codebase hygiene and correct use of NexusLabs.Framework types. Test-specific and data-layer analyzers ship in separate packages. |
NexusLabs.Xunit.Assertions |
xUnit.v3 assertion helpers that integrate with the Framework result-pattern types and HTTP response shapes. Uses C# 14 extension(Assert) blocks. |
NexusLabs.CodeAnalysis.Testing.TUnit |
TUnit-flavored IVerifier for Microsoft.CodeAnalysis.Testing. Lets TUnit-based test projects use the full CSharpAnalyzerTest<TAnalyzer, TVerifier> harness, which Microsoft ships verifiers for in xUnit/NUnit/MSTest but not TUnit. |
NexusLabs.Data.Sql |
Provider-agnostic decorators around IAsyncDbConnection/IAsyncDbCommand: bounded connection-lease (built on AsyncSemaphoreLease), open-tracking diagnostics, ILogger command logging, predicate-built factory. |
NexusLabs.Data.Sql.MySql |
MySQL provider for the NexusLabs.Data.Sql surface and IAsyncDb* interfaces. Builds connection strings safely via MySqlConnectionStringBuilder. |
Install
dotnet add package NexusLabs.Framework
dotnet add package NexusLabs.Framework.Analyzers # opt-in lint rules
dotnet add package NexusLabs.Xunit.Assertions # only in test projects
dotnet add package NexusLabs.CodeAnalysis.Testing.TUnit # for TUnit-based analyzer test projects
dotnet add package NexusLabs.Data.Sql # provider-agnostic decorators
dotnet add package NexusLabs.Data.Sql.MySql # adds MySql.Data backed factory
Both packages target net10.0. For earlier .NET versions, pin to a 0.1.x of NexusLabs.Framework.
What's in NexusLabs.Framework
Runtime utilities for cross-cutting C# concerns: a result-pattern type family
(Tried/TriedEx/TriedNullEx) with Safely / Try orchestration helpers,
stream wrappers, AsyncSemaphoreLease and related concurrency primitives,
async event-handler glue, async ADO.NET interface shapes, and process
diagnostics. The deprecated ITimeProvider ships for one more 0.x release;
migrate to BCL System.TimeProvider.
The authoritative list of public types is the source tree under
src/NexusLabs.Framework/ and the XML doc comments shipped in the package.
See CHANGELOG.md for what landed in each version.
Result pattern
TriedEx<int> result = Safely.GetResultOrException(() => int.Parse(input));
result.Match(
onSuccess: value => Console.WriteLine($"parsed: {value}"),
onError: ex => Console.WriteLine($"failed: {ex.Message}"));
Archived packages
Six packages from this repository were archived as part of 0.2.0:
NexusLabs.Autofac,NexusLabs.Collections.Generic,NexusLabs.Contracts,NexusLabs.Dynamo,NexusLabs.Reflection,NexusLabs.Testing.Xunit
The 0.x lines remain on nuget.org. Source is preserved on the release/0.x branch. See docs/archived-packages/ for per-package migration guidance.
License
MIT © Nexus Software Labs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on NexusLabs.Framework:
| Package | Downloads |
|---|---|
|
NexusLabs.Collections.Generic
This package offers extension methods for working with enumerables and collections as well as entirely new collections. This includes things like caching enumerables to trade off memory for reduced subsequent query time and 'frozen' collections that help articulate unchanging collections. |
|
|
NexusLabs.Data.Sql
Provider-agnostic decorators and helpers for the async ADO.NET interface shapes defined in NexusLabs.Framework. Includes connection lease (pool-size limiting with timeout-bounded acquisition and a ConnectionPoolExhaustedException), open-tracking diagnostics, structured logging command wrapper, and a predicate-based connection factory. |
|
|
NexusLabs.Xunit.Assertions
xUnit.v3 assertion helpers that integrate with the NexusLabs.Framework result-pattern types (TriedEx<T>, TriedNullEx<T?>) and HTTP response shapes. Uses C# 14 extension(Assert) blocks to augment Xunit.Assert with NexusLabs-aware overloads. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.2 | 534 | 5/30/2026 |
| 0.2.1 | 130 | 5/24/2026 |
| 0.2.0 | 96 | 5/23/2026 |
| 0.1.4 | 1,640 | 12/5/2025 |
| 0.1.3 | 436 | 11/30/2025 |
| 0.1.2 | 333 | 11/30/2025 |
| 0.1.1 | 187 | 11/30/2025 |
| 0.0.46 | 4,455 | 7/21/2024 |
| 0.0.45 | 1,792 | 5/24/2023 |
| 0.0.42 | 940 | 3/31/2023 |
| 0.0.41 | 361 | 3/31/2023 |
| 0.0.40 | 453 | 3/26/2023 |
| 0.0.39 | 380 | 3/26/2023 |
| 0.0.38 | 380 | 3/25/2023 |
| 0.0.37 | 373 | 3/24/2023 |
| 0.0.35 | 391 | 3/24/2023 |
| 0.0.34 | 794 | 1/29/2023 |
| 0.0.33 | 442 | 1/29/2023 |
| 0.0.31 | 468 | 1/27/2023 |
| 0.0.25 | 816 | 1/20/2023 |