Azure.Functions.Sdk 0.4.0
Pre-release
Pre-release
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 restorephase
- Generated project renamed to
- Removes dependencies on generated project
Microsoft.NET.Sdk.Functionsremoved
- No longer fully builds the extension project, only restores and directly collects extension files
- Extension trimming behavior has been removed
Microsoft.Azure.Functions.Worker.Sdkwould 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