AzureFunctions.Worker.Extensions.AspNetCore 2.0.18

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

ASP.NET Core middleware support

  • Use ASP.NET Core built-in middlewares: UseAuthentication, UseAuthorization, or any other custom ones
  • Use ASP.NET Core built-in bindings: FromQuery, FromBody, IFormFile, or any other custom ones
  • Have full IActionResult/IResult integration as in MVC

NuGet package

https://www.nuget.org/packages/AzureFunctions.Worker.Extensions.AspNetCore

🔴Migration to v2 Azure Functions SDK🔴

Microsoft suggest to use FunctionsApplicationBuilder over generic HostBuilder that is why v2 package will only support this api.

v1

var host = new HostBuilder()
    .ConfigureServices((hostingContext, services) =>
    {
        // additional worker services configuration
    })
    .ConfigureFunctionsWebApplication(worker =>
    {
        worker
            .AddAspNetCoreIntegration()
            .AddMvcOptions(mvcOptions =>
            {
                // additional MVC options customization
            });

        worker.UseAspNetCoreMiddleware(app =>
        {
            app.UseMiddleware<ExceptionHandlingMiddleware>(); // <-- custom ASP.NET middleware for exception handling of all HTTP triggered requests

            app.UseAuthentication();  // <-- built-in ASP.NET middleware
            app.UseAuthorization();  // <-- built-in ASP.NET middleware
        });
    })
    .Build();

v2

var builder = FunctionsApplication.CreateBuilder(args);

// should be used for HTTP triggered APIs
builder.ConfigureFunctionsWebApplication();

// should be called after "ConfigureFunctionsWebApplication"
builder
    .ConfigureAspNetCoreMvcIntegration(mvcBuilder =>
    {
        // additional MVC builder customization
        mvcBuilder.AddMvcOptions(mvcOptions => { });
    })
    .UseAspNetCoreMiddleware(app =>
    {
        app.UseMiddleware<ExceptionHandlingMiddleware>(); // <-- custom ASP.NET middleware for exception handling of all HTTP triggered requests
    
        app.UseAuthentication();  // <-- built-in ASP.NET middleware
        app.UseAuthorization();  // <-- built-in ASP.NET middleware
    });
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AzureFunctions.Worker.Extensions.AspNetCore:

Package Downloads
AzureFunctions.Worker.Extensions.AspNetCore.ApiExplorer

Package Description

AzureFunctions.Worker.Extensions.Swashbuckle

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.18 209 7/7/2025
2.0.17 125 6/27/2025
2.0.16 228 6/25/2025
2.0.15 153 6/25/2025
2.0.14 145 6/24/2025
2.0.12 846 2/4/2025
2.0.11 125 2/3/2025
2.0.10 116 2/3/2025
2.0.9 116 1/31/2025
2.0.8 113 1/27/2025
2.0.7 106 1/24/2025
2.0.6 96 1/24/2025
2.0.5 102 1/24/2025
2.0.1 122 1/16/2025
2.0.0 121 1/10/2025
1.0.10 4,080 4/17/2024
1.0.9 477 4/14/2024
1.0.8 164 4/13/2024
1.0.7 171 4/6/2024
1.0.6 486 3/2/2024
1.0.5 156 3/2/2024
1.0.4 197 3/2/2024
1.0.3 171 3/1/2024
1.0.2 171 2/25/2024
1.0.1 122 2/25/2024
1.0.0 149 2/24/2024

- fixed issue with middleware double execution for parameterless function