Net4x.BaseTypes
1.3.1.13
dotnet add package Net4x.BaseTypes --version 1.3.1.13
NuGet\Install-Package Net4x.BaseTypes -Version 1.3.1.13
<PackageReference Include="Net4x.BaseTypes" Version="1.3.1.13" />
<PackageVersion Include="Net4x.BaseTypes" Version="1.3.1.13" />
<PackageReference Include="Net4x.BaseTypes" />
paket add Net4x.BaseTypes --version 1.3.1.13
#r "nuget: Net4x.BaseTypes, 1.3.1.13"
#:package Net4x.BaseTypes@1.3.1.13
#addin nuget:?package=Net4x.BaseTypes&version=1.3.1.13
#tool nuget:?package=Net4x.BaseTypes&version=1.3.1.13
Net4x.BaseTypes
Net4x.BaseTypes is a small, focused library that provides a set of lightweight base types, helpers and compatibility shims intended to make it easier to write code that targets a wide range of .NET frameworks and versions.
This repository contains multi-targeted builds of the library so it can be used from older .NET Framework projects (2.0 through 4.x) as well as modern .NET and .NET Standard projects.
Key features
- Lightweight base types and helper utilities
- Compatibility shims for APIs across multiple .NET target frameworks
- Collections, spans/read-only span abstractions, and small performance helpers
- Extension methods and utilities intended for shared library code
Supported target frameworks
The projects in this repository are configured to build for multiple TFMs, including (but not necessarily limited to):
- .NET Standard 2.0
- .NET Standard 2.1
- .NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.6.2, 4.7.2
- .NET 6.0, .NET 8.0, .NET 10.0
Repository layout
src/Net4x.BaseTypes- Core library source code (multi-targeted)src/Net4x.BaseExtensions- Additional extension helperstests/Net4x.BaseTypes.Tests- Unit tests covering public and internal behaviorstests/InternalClassLibrary- Helper projects for tests targeting different frameworks
Building
The solution and projects are multi-targeted. To build from the command line, use the .NET SDK (for supported TFMs):
Build the entire solution (uses installed SDKs):
dotnet buildBuild a specific project:
dotnet build src/Net4x.BaseTypes/Net4x.BaseTypes.csproj
Running tests
Unit tests are available under the tests/Net4x.BaseTypes.Tests project. Run tests with:
dotnet test
Contributing
Contributions, bug reports and pull requests are welcome. When contributing:
- Keep changes focused and small
- Include unit tests for new behaviors or bug fixes
- Update or add documentation when public APIs change
License
This project is licensed under the Apache-2.0 license. See the LICENSE.txt file for details.
Contact
For questions about this project, open an issue in the repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net20 is compatible. net30 is compatible. net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETFramework 3.0
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETFramework 3.5
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETFramework 4.0
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETFramework 4.5
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETFramework 4.7.2
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
-
.NETStandard 2.0
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
- System.CodeDom (>= 9.0.0)
-
.NETStandard 2.1
- Net30.LinqBridge (>= 1.6.0.2)
- Net35.Actions (>= 1.4.0.2)
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.ValueTuple (>= 1.4.0.1)
- System.CodeDom (>= 9.0.0)
NuGet packages (52)
Showing the top 5 NuGet packages that depend on Net4x.BaseTypes:
| Package | Downloads |
|---|---|
|
Net4x.SystemBuffers
System.Buffers |
|
|
Net4x.AsyncBridge
Package Description |
|
|
Net4x.FluentValidation.DependencyInjectionExtensions
Dependency injection extensions for FluentValidation |
|
|
Net4x.FluentValidation9.DependencyInjectionExtensions
Dependency injection extensions for FluentValidation |
|
|
Net4x.CoreLibrary.Logging
CoreLibrary Logging |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.1.13 | 1,935 | 12/30/2025 |
| 1.3.1.12 | 281 | 12/26/2025 |
| 1.3.1.11 | 1,338 | 12/21/2025 |
| 1.3.1.10 | 196 | 12/20/2025 |
| 1.3.1.9 | 193 | 12/19/2025 |
| 1.3.1.8 | 737 | 12/13/2025 |
| 1.3.1.7 | 3,266 | 12/4/2025 |
| 1.3.1.6 | 848 | 12/4/2025 |
| 1.3.1.5 | 803 | 11/29/2025 |
| 1.3.1.4 | 1,693 | 11/22/2025 |
| 1.3.1.3 | 7,023 | 11/9/2025 |
| 1.3.1.2 | 6,099 | 11/3/2025 |
| 1.3.1.1 | 900 | 10/26/2025 |
| 1.3.1 | 3,602 | 4/14/2025 |
| 1.3.0 | 13,131 | 3/31/2025 |
| 1.1.0 | 30,412 | 8/26/2023 |
| 1.1.0-at20230430053026 | 9,727 | 5/7/2023 |
| 1.0.1-at20230416032807 | 4,718 | 4/16/2023 |
| 1.0.1-at20230411060944 | 15,916 | 4/14/2023 |
| 1.0.1-at20230409101823 | 258 | 4/9/2023 |
| 1.0.1-at20230409092751 | 356 | 4/9/2023 |
| 1.0.1-at20230409083721 | 479 | 4/9/2023 |
| 1.0.0 | 300 | 4/9/2023 |
| 1.0.0-at20230408 | 425 | 4/8/2023 |