Workers 0.6.2

dotnet add package Workers --version 0.6.2
                    
NuGet\Install-Package Workers -Version 0.6.2
                    
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="Workers" Version="0.6.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Workers" Version="0.6.2" />
                    
Directory.Packages.props
<PackageReference Include="Workers" />
                    
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 Workers --version 0.6.2
                    
#r "nuget: Workers, 0.6.2"
                    
#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 Workers@0.6.2
                    
#: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=Workers&version=0.6.2
                    
Install as a Cake Addin
#tool nuget:?package=Workers&version=0.6.2
                    
Install as a Cake Tool

Workers

Write Cloudflare Workers in C# compiled to native JavaScript.

using Workers;

public static class Worker
{
    [Fetch]
    public static Response Fetch(Request request)
    {
        return new Response("Hello from C#!");
    }
}

Getting started

Add the package to a .NET project and publish:

dotnet add package Workers
dotnet publish -c Release

The generated dist/worker.js is a native ES module ready for Wrangler. Configure bindings, routes, and deployment settings in your Wrangler configuration.

Workers uses a focused C# profile and native JavaScript/Web APIs. The full .NET BCL and arbitrary NuGet packages are not supported; unsupported APIs produce compiler diagnostics. Versions before 0.3.0 used .NET on WebAssembly. Version 0.6.0 includes breaking changes.

Examples

Start with HelloWorld, or browse the examples and usage notes for HTTP, routing, cookies, storage, queues, and scheduled events.

You can also explore a live demo built by Michiel Post.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.2 46 10/16/2026
0.6.1 57 10/15/2026
0.6.0 57 10/11/2026
0.4.1 88 9/21/2026
0.4.0 74 9/21/2026
0.3.0 93 9/16/2026
0.2.0 111 7/1/2026
0.1.0 86 7/1/2026