Open Cyber1000 opened 1 year ago
Found this file which seems to use optionalProjectFileFlag (excluding sln + csproj if false), I just don't know what I'm doing wrong here.
Sorry didn't mention the file in my latest post: found the usage in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java but not in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java
So -g csharp works as expected, but -g csharp-netcore doesn't.
btw. there seems to be an undocumented additionalparameter named "excludeTests" whcih seems to work for both templates
Any update on this? I'm using the latest version where csharp-netcore got merged with csharp, so I'm just using -g csharp
, but optionalProjectFile=false
still seems to produce a csproj file.
Yep, getting the same problem, where optionalProjectFile=false
inside config.json
still produces a csproj file. I'm using the docker image v7.3.0
Description
openapi-generator-cli generate -i https://petstore3.swagger.io/api/v3/openapi.json -g csharp-netcore -o api --additional-properties=optionalProjectFile=false,sourceFolder=test
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:latest generate \ -i https://petstore3.swagger.io/api/v3/openapi.json -g csharp-netcore -o api \ --additional-properties=optionalProjectFile=false,sourceFolder=test \ -o /local/out/csharp
openapi-generator version
Related issues/PRs
Suggest a fix
Additional question