Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmd Line webapi2swagger: Create missing output directory #78

Closed
CastleSoft opened this issue May 2, 2016 · 4 comments
Closed

Cmd Line webapi2swagger: Create missing output directory #78

CastleSoft opened this issue May 2, 2016 · 4 comments

Comments

@CastleSoft
Copy link

CastleSoft commented May 2, 2016

Given the following Post-Build event command line:

nswag webapi2swagger /assembly:$(TargetPath) /controller:WebApplication1.Controllers.ValuesController /output:$(ProjectDir)\TypeScript\$(SolutionName).json
nswag swagger2tsclient /input:$(ProjectDir)\TypeScript\$(SolutionName).json /output:$(ProjectDir)\TypeScript\$(SolutionName).ts

If the TypeScript folder doesn't exist, nswag fails with an error.

It would be nice if the code created the directory if it didn't exist.

@RicoSuter RicoSuter changed the title NSwag command line fails if output directory doesn't exist. (** Feature Request **) Cmd Line webapi2swagger: Create missing output directory May 2, 2016
@RicoSuter
Copy link
Owner

I'm sure there is an msbuild task to create a missing directory... try this until this feature is implemented.

jkonecki added a commit to jkonecki/NSwag that referenced this issue May 20, 2016
jkonecki added a commit to jkonecki/NSwag that referenced this issue May 20, 2016
RicoSuter added a commit that referenced this issue May 20, 2016
Issue #78 - Creating output directory if it doesn't exist.
@jkonecki
Copy link
Contributor

I believe this issue is fixed and can be closed.

@RicoSuter
Copy link
Owner

Fixed in v2.33

@RicoSuter
Copy link
Owner

See #130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants