Azure.Functions.Sdk
0.4.0
Prefix Reserved
<Sdk Name="Azure.Functions.Sdk" Version="0.4.0" />
#:sdk Azure.Functions.Sdk@0.4.0
Azure.Functions.Sdk
An MSBuild SDK for building Azure Functions .NET isolated worker applications. This SDK replaces Microsoft.Azure.Functions.Worker.Sdk and is imported via the Sdk attribute on the <Project> element rather than as a PackageReference.
Getting Started
Set the Sdk attribute on your project's <Project> element:
<Project Sdk="Azure.Functions.Sdk/[VERSION]">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
</ItemGroup>
</Project>
The SDK automatically provides:
Microsoft.NET.Sdk.Worker(the underlying worker SDK)Microsoft.Azure.Functions.Workerpackage referenceAzureFunctionsVersionset tov4- Source generators and analyzers for function metadata
- Azure Functions tooling integration (
dotnet runlaunches the Functions host)
You only need to add your trigger and binding extension packages.
Migrating from Microsoft.Azure.Functions.Worker.Sdk
Migration only requires changes to your project file (.csproj). No C# code changes are needed. (assuming you are on the latest Microsoft.Azure.Functions.Worker).
The old SDK used a PackageReference and required you to set several properties manually:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
</ItemGroup>
</Project>
To migrate, make the following project file changes:
- Change the
Sdkattribute fromMicrosoft.NET.SdktoAzure.Functions.Sdk/<version>. - Remove the
Microsoft.Azure.Functions.Worker.Sdkpackage reference — it is now the SDK itself. - Remove the
Microsoft.Azure.Functions.Workerpackage reference — it is included implicitly by the SDK. - Remove
OutputType— the worker SDK sets this automatically. - Remove
AzureFunctionsVersion— the SDK defaults tov4.
<Project Sdk="Azure.Functions.Sdk/[VERSION]">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
</ItemGroup>
</Project>
Note: Both SDKs use the same analyzers, source generators, and runtime packages. Migration changes only the MSBuild targets that drive the build — your application code,
Program.cs, function classes, andhost.jsonall remain unchanged.
Generated Extension Project (azure_functions.g.csproj)
During restore, the SDK generates a helper project named azure_functions.g.csproj in your obj/ directory. This project is used to resolve the function extension assemblies required by the Azure Functions host. It is restored automatically and its outputs are included in your build and publish output.
You should not build, edit, or reference this project directly. If a traversal or dirs.proj file accidentally includes it, see AZFW0109 for guidance.
SDK Rules
The SDK emits diagnostics prefixed with AZFW01xx. See the full list of SDK rules here.
Learn more about Target Frameworks and .NET Standard.
This package has 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.4.0 | 65 | 5/7/2026 |
## What's Changed
<!-- Please add your release notes in the following format:
- My change description (#PR/#issue)
-->
### Azure.Functions.Sdk 0.4.0
- 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