diff --git a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.targets b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.targets index b1f8ed7df4..fdeea20bf5 100644 --- a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.targets +++ b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.targets @@ -19,7 +19,8 @@ $(_NSwagCommand) openapi2csclient /className:%(ClassName) /namespace:%(Namespace) - %(Command) /GenerateExceptionClasses:false + %(Command) /generateExceptionClasses:false + %(Command) /generateExceptionClasses:%(NSwagGenerateExceptionClasses) %(Command) /input:"%(FullPath)" /output:"%(OutputPath)" %(Options) @@ -154,6 +155,7 @@ %(Command) /wrapResponseMethods:%(NSwagWrapResponseMethods) + %(Command) /generateResponseClasses:false %(Command) /generateResponseClasses:%(NSwagGenerateResponseClasses)