Skip to content

Commit

Permalink
Fix NSwag.ApiDescription.Client.targets (#4773)
Browse files Browse the repository at this point in the history
Condition expression evaluation resulted in error when NSwagGenerateExceptionClasses is not defined.
Fixes #4633
  • Loading branch information
olegd-superoffice committed Mar 14, 2024
1 parent 0c9d87f commit 57fcd55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<Command>$(_NSwagCommand) openapi2csclient /className:%(ClassName) /namespace:%(Namespace)</Command>
</CurrentOpenApiReference>
<CurrentOpenApiReference>
<Command Condition="!%(FirstForGenerator) OR !%(NSwagGenerateExceptionClasses)">%(Command) /GenerateExceptionClasses:false</Command>
<Command Condition="!%(FirstForGenerator) OR (%(NSwagGenerateExceptionClasses) != '' AND !%(NSwagGenerateExceptionClasses))">%(Command) /GenerateExceptionClasses:false</Command>
</CurrentOpenApiReference>
<CurrentOpenApiReference>
<Command>%(Command) /input:"%(FullPath)" /output:"%(OutputPath)" %(Options)</Command>
Expand Down

0 comments on commit 57fcd55

Please sign in to comment.