NSwag command line to generate cs client issue #4937
Unanswered
peterhoang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to generate the C# client files after the build of my solution so I have the following in my main csproj file:
And the nswag.json:
I will get a building error about an exception of a missing config (section) in my appsettings. This is by design as I have guards that throw exceptions when an expected configuration is missing in the appsettings.
Before this post build step, the dotnet web API builds and runs fine.
What am I missing or is the Nswag command line not an option for my situation (which I doubt because loading settings from appsettings is a common practice in the dotnet world)?
Beta Was this translation helpful? Give feedback.
All reactions