Have a queue-triggered function defined as the following example:
public async Task OrchestratorAsync(
[QueueTrigger("my-queue", Connection = "")]string payload,
[OrchestrationClient] DurableOrchestrationClient orchestrationClient)
{
//Do something
}
The csproj file looks like the following details and it compiles successfully:
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="1.8.2" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.10" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.0.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.29" />
</ItemGroup>
</project>
When I upgrade Microsoft.Azure.WebJobs.Extensions.DurableTask
to version 2.0.0 the compiler throws error on not being able to find OrchestrationClient and DurableOrchestrationClient. So we're stuck with version 1.8.2! What's the solution for this issue?
Note: This issue is quite reproducible by VS 2019. Have it scaffold a Function project, the create another function as a durable orchestrator, tweak the csproj file and bump up the DurableTask nuget package version to 2.0.0 from the default 1.8.2.