<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion> </PropertyGroup> <!-- Azure Functions executing in In-process mode is currently incompatible with System.Diagnostics.DiagnosticSource 7.0.0. Adding FunctionsPreservedDependencies is required to ensure that the Azure Functions runtime uses the version of System.Diagnostics.DiagnosticSource this function depends on. --> <ItemGroup> <FunctionsPreservedDependencies Include="System.Diagnostics.DiagnosticSource.dll" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" /> <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" /> <PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" /> </ItemGroup> <ItemGroup> <None Update="host.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Update="local.settings.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>Never</CopyToPublishDirectory> </None> </ItemGroup> </Project>