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

I´m trying to generate nswag documentation with studio and command line and nswag tries to crash my laptop #5010

Open
mobius127 opened this issue Oct 28, 2024 · 5 comments

Comments

@mobius127
Copy link

mobius127 commented Oct 28, 2024

Captura de pantalla 2024-10-28 164928

As you can see, when I´m trying to execute nswag to generate some documentation of the simpliest web api, nswag is trying to crash my laptop.

In the screen shot you can see what im saying. .NET Host process are multiplying like a virus!!!
ApiNswag.zip

I left the project and i´m using it in my company apis with an older version and im trying to migrate from .net6 to .net8 and your library crashes and is not a clear migration manual from v13 to v14.

This is very dissapointing

@vvdb-architecture
Copy link

This might be due to recursive building. Do you have "nobuild": true in your nswag file to make sure nswag doesn't invoke itself?

@mobius127
Copy link
Author

Hi it worked but this is a serious bug. The memory of my laptop collapsed.

@vvdb-architecture
Copy link

I'm glad it worked! Despite the appearances, this is not really a bug. There are quite a number of differences between NSwag 13 and 14 and you need to adapt the config files in consequence. There is a thread on top of the issues that details the difference, but the information is sadly scattered.
It's all a bit disappointing, but personally I stand by NSwag, since it's much better than that horrible Kiota.

@aunikitin
Copy link

Hello, experienced the same on macos. Could you attach doc with breaking changes for others and place, there I should add nobuild? I have several options: aspNetCoreToOpenApi, openApiToCSharpClient

@vvdb-architecture
Copy link

You may want to have a look at #4865

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

No branches or pull requests

3 participants