Skip to content

Azure.Functions.Sdk 0.4.0

Pre-release
Pre-release

Choose a tag to compare

@jviau jviau released this 12 May 17:37
· 13 commits to main since this release
2fc9230

This is the first preview for a new approach to our SDK, effectively replacing Microsoft.Azure.Functions.Worker.Sdk. The primary difference is that Azure.Functions.Sdk is an MSBuild SDK, referenced via the <Sdk /> or <Project Sdk="..." /> elements. No longer via PackageReference. This allows the SDK to participate in dotnet restore, addressing the inner-restore issue seen in Microsoft.Azure.Functions.Worker.Sdk with generating the extensions payload.

https://www.nuget.org/packages/Azure.Functions.Sdk/0.4.0

What's Changed

  • Initial SDK preview
  • A replacement for Microsoft.Azure.Functions.Worker.Sdk
  • Now an MSBuild SDK (and not a PackageReference)
  • Overhauls the extension project generation and restore flow
    • Generated project renamed to azure_functions.g.csproj
    • Will now make best-effort to generate and restore as part of dotnet restore phase
  • Removes dependencies on generated project
    • Microsoft.NET.Sdk.Functions removed
  • No longer fully builds the extension project, only restores and directly collects extension files
  • Extension trimming behavior has been removed
    • Microsoft.Azure.Functions.Worker.Sdk would previously only include extensions which had actual usage (determined by examining built code)
    • New SDK no longer takes this step. All referenced extensions are included, regardless of actual code usage