Skip to content

Generator needs explicit project type configuration option #402

@berndverst

Description

@berndverst

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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions