Net4x.AsyncBridge
1.5.0.7
dotnet add package Net4x.AsyncBridge --version 1.5.0.7
NuGet\Install-Package Net4x.AsyncBridge -Version 1.5.0.7
<PackageReference Include="Net4x.AsyncBridge" Version="1.5.0.7" />
<PackageVersion Include="Net4x.AsyncBridge" Version="1.5.0.7" />
<PackageReference Include="Net4x.AsyncBridge" />
paket add Net4x.AsyncBridge --version 1.5.0.7
#r "nuget: Net4x.AsyncBridge, 1.5.0.7"
#:package Net4x.AsyncBridge@1.5.0.7
#addin nuget:?package=Net4x.AsyncBridge&version=1.5.0.7
#tool nuget:?package=Net4x.AsyncBridge&version=1.5.0.7
Net4x.AsyncBridge
Net4x.AsyncBridge is a compatibility library that brings modern C# async/await building blocks to a wide range of .NET targets, including older .NET Framework versions and newer .NET/.NET Core runtimes. It provides backports and cross-targeting helpers such as ValueTask, async method builders, IAsyncDisposable support, and utilities that make it easier to write and consume asynchronous code across framework versions.
Authors: Piero Viano
Repository: https://bitbucket.org/pieroviano/asyncbridge
Why this project
Many modern APIs and language features (for example ValueTask, custom async method builders and IAsyncDisposable) were introduced in newer .NET versions. Net4x.AsyncBridge provides compatible implementations and helpers so libraries and applications targeting older frameworks can use these patterns or be cross-compiled for newer TFMs without duplicating runtime behavior.
Features
ValueTaskimplementation and related helpers for older frameworks- Async method builders compatible with the C#
async/awaitcompiler-generated patterns - Backports and extension helpers for
IAsyncDisposable - Utilities to adapt Task-based APIs to more modern patterns
- Cross-targeting support across many TFMs
Supported targets
The solution contains multiple projects targeting a wide set of frameworks. Examples include:
- .NET Framework 2.0 through 4.8 (and many 4.x variations)
- .NET Standard 2.0, 2.1
- .NET 5, 6, 7, 8, 9 (and Windows-specific TFMs where applicable)
See individual project files under src/ and tests/ for exact Target Framework Monikers (TFMs).
Quick start
Clone the repository:
Open the solution in Visual Studio (recommended for older .NET Framework targets) or use the
dotnetCLI for SDK-style projects.Reference the projects you need, or build the desired project and reference the produced assemblies.
Example (conceptual):
// Example using the library's ValueTask and async helper types
using AsyncBridge.Threading.Tasks;
public async ValueTask<int> ComputeAsync()
{
// Implementation using AsyncBridge helpers
await Task.Delay(10);
return 42;
}
Building
For SDK-style projects (netstandard/netcore/net):
dotnet buildfrom the repository root or the specific project directory.
For full .NET Framework projects:
- Open the solution in Visual Studio and build the solution using the appropriate configuration and platform.
Note: The repository contains many projects targeting different TFMs. Build only the projects you need or the entire solution in Visual Studio.
Running tests
Test projects are located under the tests/ directory. Use the test runner appropriate to each target framework:
- For .NET Core / SDK-style test projects:
dotnet testin the test project directory. - For .NET Framework test projects: run tests from Visual Studio or use the appropriate NUnit/MSTest runner for the targeted framework.
Contributing
Contributions, bug reports, and pull requests are welcome. Please follow these guidelines:
- Fork the repository and create a feature branch.
- Add tests for new behavior where applicable.
- Keep changes targeted and provide a clear description of the problem and your fix.
- Open a pull request describing the change.
License
See LICENSE.txt in the repository root for licensing details.
Acknowledgements
This project was inspired by community efforts to bring async/await support to older frameworks. Thanks to contributors and maintainers who helped shape the implementation.
| 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 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
| 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
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
-
.NETFramework 3.0
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
-
.NETFramework 3.5
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
-
.NETFramework 4.0
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
-
.NETFramework 4.5
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.5.1
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.5.2
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.6
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.6.1
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.6.2
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.7
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.7.1
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.7.2
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.8
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.8.1
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.0
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.1
- Net35.Threading.Tasks (>= 4.2.0.2)
- Net35.TypeInfo (>= 1.5.0.6)
- Net4x.BaseTypes (>= 1.3.1.13)
NuGet packages (99)
Showing the top 5 NuGet packages that depend on Net4x.AsyncBridge:
| Package | Downloads |
|---|---|
|
Net4x.Runtime.CompilerServices.Unsafe
System.Runtime.CompilerServices.Unsafe |
|
|
Net4x.SystemBuffers
System.Buffers |
|
|
Net4x.FluentValidation.DependencyInjectionExtensions
Dependency injection extensions for FluentValidation |
|
|
Net4x.FluentValidation9.DependencyInjectionExtensions
Dependency injection extensions for FluentValidation |
|
|
Net4x.CoreLibrary.Interfaces.Configuration
CoreLibrary Interfaces |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0.7 | 2,396 | 12/30/2025 |
| 1.5.0.6 | 397 | 12/26/2025 |
| 1.5.0.5 | 1,279 | 12/21/2025 |
| 1.5.0.4 | 157 | 12/20/2025 |
| 1.5.0.3 | 163 | 12/19/2025 |
| 1.5.0.2 | 9,805 | 11/13/2025 |
| 1.5.0.1 | 1,782 | 11/9/2025 |
| 1.5.0 | 18,471 | 3/31/2025 |
| 1.1.0 | 30,587 | 8/26/2023 |
| 1.1.0-at20230430053553 | 9,350 | 5/7/2023 |
| 1.0.0-at20230416032846 | 4,700 | 4/16/2023 |
| 1.0.0-at20230411061314 | 12,584 | 4/14/2023 |
| 1.0.0-at20230409094003 | 295 | 4/9/2023 |
| 1.0.0-at20230409084002 | 333 | 4/9/2023 |
| 1.0.0-at20230409075105 | 304 | 4/9/2023 |
| 1.0.0-at20230409072402 | 238 | 4/9/2023 |
| 1.0.0-at20230409072118 | 263 | 4/9/2023 |
| 1.0.0-at20230408 | 334 | 4/8/2023 |