Microsoft.Azure.Functions.Worker.Sdk 2.1.0

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

Microsoft.Azure.Functions.Worker.Sdk

This package provides development-time support for Azure Functions .NET isolated worker apps, including MSBuild build and publish targets, a Roslyn source generator for function metadata, and analyzers.

Getting Started

This package is typically added via the Azure Functions project template. To add it manually:

dotnet add package Microsoft.Azure.Functions.Worker.Sdk

For more information, see the Azure Functions .NET isolated worker guide.

What's Included

Build & Publish Targets

The SDK adds MSBuild targets that run during build and publish:

  • Function indexing — Analyzes your compiled assembly and generates function metadata (functions.metadata) so the Azure Functions host can discover your functions without runtime reflection.
  • Extension bundling — Auto-generates a WorkerExtensions project that compiles all binding extension packages into a single assembly.
  • Publish support — Configures output for deployment, including Docker base image assignment for container scenarios.

Source Generators

Three Roslyn source generators run at compile time:

  • FunctionMetadataProvider — Generates a IFunctionMetadataProvider implementation that returns metadata for all [Function]-attributed methods. This enables build-time indexing for fast cold starts.
  • FunctionExecutor — Generates strongly-typed wrapper methods for invoking user functions with correct parameter binding.
  • ExtensionStartupRunner — Generates a startup orchestrator that calls Configure() on all extension startup types.

Analyzers

This package includes analyzers (AZFW0001–AZFW0013, AZFW0017) that catch common issues during development. For the full list of rules and detailed documentation, see the analyzer rules reference.

Configuration

The SDK exposes MSBuild properties you can set in your .csproj to control its behavior:

<PropertyGroup>
  
  <AzureFunctionsVersion>v4</AzureFunctionsVersion>

  
  <FunctionsEnableWorkerIndexing>true</FunctionsEnableWorkerIndexing>

  
  <FunctionsEnableMetadataSourceGen>true</FunctionsEnableMetadataSourceGen>

  
  <FunctionsEnableExecutorSourceGen>true</FunctionsEnableExecutorSourceGen>

  
  <FunctionsGeneratedCodeNamespace>MyApp.Generated</FunctionsGeneratedCodeNamespace>
</PropertyGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (35)

Showing the top 5 NuGet packages that depend on Microsoft.Azure.Functions.Worker.Sdk:

Package Downloads
DurableFunctionsMonitor.DotNetIsolated

DurableFunctionsMonitor.DotNetIsolated

HUMANiT.Azure.Functions

API proxy. Heartbeat. Simplified payload handling. Simplified content result creation incl. JSON. Simplified IActionResult handling for common HTTP status codes. Media types. Extensions.

GeneXus.Deploy.AzureFunctions.Handlers

Package Description

Cqrs.Azure.Functions.Isolated

Use Azure Functions with CQRS.NET

Fable.Remoting.AzureFunctions.Worker

AzureFunctions-Fable adapter for isolated mode (worker) that generates routes for shared server spec with a Fable client. Client must use Fable.Remoting.Client

GitHub repositories (79)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Azure.Functions.Worker.Sdk:

Repository Stars
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
Azure-Samples/cognitive-services-speech-sdk
Sample code for the Microsoft Cognitive Services Speech SDK
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
NuGetPackageExplorer/NuGetPackageExplorer
Create, update and deploy Nuget Packages with a GUI
MicrosoftLearning/AZ-204-DevelopingSolutionsforMicrosoftAzure
AZ-204: Developing solutions for Microsoft Azure
Azure/azure-functions-host
The host/runtime that powers Azure Functions
microsoft/WhatTheHack
A collection of challenge based hack-a-thons including student guide, coach guide, lecture presentations, sample/instructional code and templates. Please visit the What The Hack website at: https://aka.ms/wth
toddams/RazorLight
Template engine based on Microsoft's Razor parsing engine for .NET Core
Azure/azure-functions-core-tools
Command line tools for Azure Functions
microsoft/aspire-samples
Browse the sample apps demonstrating Aspire integration across C#, JavaScript, TypeScript, Python, Go, containers, databases, cloud, AI, and observability scenarios.
polymind-inc/acmebot
Automated ACME SSL/TLS certificate management built around Azure Key Vault
icsharpcode/CodeConverter
Convert code from C# to VB.NET and vice versa using Roslyn
azure-ad-b2c/samples
Azure AD B2C custom policy solutions and samples.
microsoft/Oryx
Build your repo automatically.
Azure-Samples/cloud-design-patterns
Sample implementations for cloud design patterns found in the Azure Architecture Center.
Azure-Samples/azure-search-openai-demo-csharp
A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
HaveIBeenPwned/PwnedPasswordsAzureFunction
APIs for the k-anonymity Pwned Passwords implementation
TheCodeTraveler/GitTrends
A iOS and Android app to monitor the Views, Clones and Star history of your GitHub repos
Version Downloads Last Updated
2.1.0 1,254,643 7/23/2026
2.0.7 16,560,481 11/13/2025
2.0.6 940,826 11/6/2025
2.0.5 9,280,334 6/19/2025
2.0.4 1,956,841 5/22/2025
2.0.3 156,642 5/21/2025
2.0.2 5,099,519 3/26/2025
2.0.1 2,078,818 2/25/2025
2.0.0 12,054,102 11/12/2024
2.0.0-preview2 94,641 9/25/2024
2.0.0-preview1 19,548 9/10/2024
1.18.1 6,217,851 10/7/2024
1.18.0 1,163,369 9/25/2024
1.17.4 7,216,375 7/11/2024
1.17.3 349,487 7/9/2024
1.17.3-preview2 75,370 5/21/2024
1.17.3-preview1 45,412 4/4/2024
1.17.2 10,665,520 3/1/2024
1.17.1 577,205 2/28/2024
1.17.0 3,457,512 2/9/2024
Loading failed