Swashbuckle.AspNetCore 7.3.1 compatibility with System.Text.Json 9.0.0 #3307
-
|
WebApplication1.zip |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You're using Target Alternatively if you need to stay on .NET 7, which is not recommended, then use an older version of Swashbuckle that targets |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. I used Swashbuckle.AspNetCore 6.9.0 and also had this issue when upgraded System.Text.Json to 9.0.0. So, I see - the option is to upgrade to .net8, 9 or use Swashbuckle.AspNetCore 6.9.0 with System.Text.Json 8.5.0 |
Beta Was this translation helpful? Give feedback.

You're using
net7.0, which has not been in support since May 2024, and is not supported by Swashbuckle 7.x.Target
net8.0ornet9.0and see if that resolves your issue.Alternatively if you need to stay on .NET 7, which is not recommended, then use an older version of Swashbuckle that targets
net7.0along with a compatible version of System.Text.Json.