-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
I am attempting to use the code as seen here:
https://github.com/microsoft/durabletask-dotnet/blob/main/samples/WebAPI/Program.cs
builder.Services.AddDurableTaskWorker(builder =>
{
builder.AddTasks(r => r.AddAllGeneratedTasks());
});However, because I have an indirect dependency (not used!) importing packages relating to Durable Functions the code generation does not generate the AddAllGeneratedTasks method. The generated code is targeting functions, when instead I am trying to use App Service.
Problem:
The code generator analyzes all imported packages and generates code targeting Azure Functions if a Functions related dependency is found. This is even true for unused transitive dependencies.
Request:
Provide an explicit option for setting the generator output project type (e.g. via Property in the csproj file)
Copilot