Open paulterinho opened 4 years ago
@RicoSuter I see you've suggested using NSwag Studio. That's working correctly. Going with that solution.
Just out of curiosity though, is the above way deprecated?
RicoSuter commented on Aug 24, 2017
Can you create a repro of the problem?
Btw: You should use a nswag.json file and just run "nswag.exe run nswag.json" - much simpler to manage the config.
P.S. thanks for making NSWag, I've used it a ton with my Java and JavaScript projects. Mad props.
The recommended way is to use aspnetcore2openapi but with an nswag.json file and the .csproj project reference setting... this should work up to core 3.1
Hi all,
I'm trying to run a MSBuild
aspnetcore2openapi
directive in a dotnetcore 3.1 app,and I'm getting the following error (any suggestions would be most welcomed):System.TypeLoadException: Could not load type 'System.IAsyncDisposable' from assembly 'Microsoft.Bcl.AsyncInterfaces,
Here's the project I'm running it from (sample todo app):
Here's the documentation I am referencing:
Here's my MSBuild directive:
`
Here's my
nswag.json
file contents:Here's the whole stacktrace:
`
`