-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
.Net 9.0 NSwagExe_Net90 failing to generate C# client #5127
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
Comments
Any update on this? |
Nothing from my end, I'll update the issue if I ever find a resolution |
Try adding |
No luck with adding WorkingDirectory to the Exec command |
What does this command output (you can remove sensitive full paths if needed, replace csproj with your path.
|
|
These empty values ( |
Or multi-level Directory.Build.props? |
You can validate the fix by using https://www.myget.org/F/nswag/api/v3/index.json feed and package version |
Describe the bug
Hello! Thank you for the excellent project!
Since upgrading my test project (previously working for .Net 7 and .Net 8) to .Net 9 I'm now getting the following error when generating my C# client via post-build step:
Version of NSwag toolchain, computer and .NET runtime used
NSwag command line tool for .NET Core Net90, toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))
To Reproduce
Here's my nswag.json configuration:
Expected behavior
C# client is successfully regenerated with minimal changes
Additional context
When we migrated from .Net 7 to .Net 8 we had to make some changes to our nswag.json configuration #4524 (comment)
The text was updated successfully, but these errors were encountered: