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
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.0the project file is always the old .NET framework format. When targettingnetcoreapp2.0, the project file type changes accordingly.My command line arguments (taken from my docker compose):
My config file:
openapi-generator version
Latest CLI docker container.
OpenAPI declaration file content or url