Skip to content

[csharp-netcore generator] Setting "netCoreProjectFile" to true with target framework "netStandard2.0" does not produce .NET Core project files #3584

@jdebache

Description

@jdebache
Description

I configure the target framework and the .csproj file type using a JSON (also tried with YAML) file that I pass to the CLI using the -c flag. When targetting netStandard2.0 the project file is always the old .NET framework format. When targetting netcoreapp2.0, the project file type changes accordingly.

My command line arguments (taken from my docker compose):

      "generate",
      "--input-spec",
      "http://webapi/api/swagger/v1/swagger.json",
      "--generator-name",
      "csharp-netcore",
      "-o",
      "/output/netcore",
      "--config",
      "/output/csharp-config.json"

My config file:

packageName: My.Client
targetFramework: netstandard2.0
netCoreProjectFile: true
openapi-generator version

Latest CLI docker container.

OpenAPI declaration file content or url

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions