Skip to content

.NET isolated template not picking up latest Durable Task worker extension #1664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lilyjma opened this issue May 9, 2025 · 3 comments
Closed

Comments

@lilyjma
Copy link

lilyjma commented May 9, 2025

.NET isolated template is not picking up the latest version of the Microsoft.Azure.Functions.Worker.Extensions.DurableTask package.

It's picking up the following version, which is taking a dependency on an older major version of the Durable webjobs extension (v2):

<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="1.1.7" />

The problem this causes is a package downgrade error when using the latest backend packages such as the DTS and MSSQL packages, because they use v3 of the webjobs extension.

@lilyjma lilyjma changed the title Templates not picking up latest Durable Task worker extension .NET isolated template not picking up latest Durable Task worker extension May 9, 2025
@manvkaur
Copy link
Contributor

manvkaur commented May 9, 2025

Hi @lilyjma , Just checked the code,

Durable Team should create a PR to bump this version - https://github.com/Azure/azure-functions-templates/blob/dev/Functions.Templates/Templates/DurableFunctionsOrchestration-CSharp-Isolated/.template.config/template.json#L42

They should also verify other Durable related package versions. Naren has written a script to bump minor versions before a release, but it doesn't bump major versions (they tend to have breaking changes) as it has to be driven by the owning team

@soninaren
Copy link
Member

The package is already bumped to latest worker version 1.3.0. https://github.com/Azure/azure-functions-templates/blob/dev/Functions.Templates/Templates/DurableFunctionsOrchestration-CSharp-Isolated/.template.config/template.json#L42. It also have been released to production.
This is the resulting .csproj file

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <AzureFunctionsVersion>v4</AzureFunctionsVersion>
    <OutputType>Exe</OutputType>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <ItemGroup>
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.23.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="1.3.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.1" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.2" />
  </ItemGroup>
</Project>

@lilyjma
Copy link
Author

lilyjma commented May 9, 2025

Thanks to both! I checked on VSCode and see the latest DurableTask version now.

@lilyjma lilyjma closed this as completed May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants