-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Missing CLI arguments for nswag 14.0.2 #4720
Comments
Maybe I'm wrong, but I think |
We too had problems with the NSwag CLI when upgrading from NSwag v13.20.0 to NSwag v14.0.2 In v13.20.0, we used the After upgrading to v14.0.2, when running the same
If we try to remove the
Having studied the problem a bit, we saw that the
If we run the command But if we run the command
In summary, we see that Apparently, either |
According to the docs, .NET 6 isn't supported in NSwag 14. I've been limiting use of NSwag 14 to projects that support .NET 7 or later because of this. |
@KirkMunroSagent, NSwag still targets .NET 6 as well and works fine if you directly use the .NET 6 assembly https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj
|
@RicoSuter, please, could you pay attention to this issue? Currently our workflow for regenerating clients via the NSwag CLI is completely broken on Windows. There is a workaround that I described above, but it would be great if there was a fix for working through the NSwag CLI. |
Same here, I'm using 14.0.3 version with dotnet 8. for me, in the exception it is showing no arguments.
|
@RicoSuter Can you please comment on this change? |
Nevermind...I inherited some code that was using |
I have the same problem. How you resolved it? |
@volkastersmall @Ganesh-Ponipireddy |
I just tried upgrading from nswag 13.20.0 to 14.0.2, changing only the
/runtime
argument from/runtime:net70
to/runtime:net80
, and ran into similar issues as reported in #4678.It seems that the following arguments have been removed from
nswag openapi2csclient
:/runtime
/timeOnly
Is that intentional or accidental? Since nswag 14 supports .NET 7 and .NET 8, it seems like the removal of
/runtime
must be accidental. I can't come up with a logical reason for the removal of/timeOnly
though.Would someone please comment on whether or not the removal of these arguments from the latest version was intentional or not?
The text was updated successfully, but these errors were encountered: