-
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
Support .NET 8 #2792
Comments
Great to see a tracking issue for this! Congratulations on the new core team as well. "Build-time OpenAPI document generation with Swashbuckle isn't supported in .NET 8 and later. For a supported build-time alternative, see ASP.NET Core web API documentation with Swagger / OpenAPI. Run-time document generation is still supported in .NET 8." |
Glad to see the progress here, let's follow it up together |
Just to chime in, you can delete this comment if this is not relevant! 😄 Anyway, me and my college were trying to generate the And it was always suggesting that we install We tried to use Then we installed, first, Hope this helps! |
Another way to workaround the need for .NET 7 when using the CLI tool is to set the following environment variable:
That will cause the tool to run with the .NET 8 runtime (doesn't guarantee it'll work, but I imagine it will). |
Hi, I keep getting a different error:
In net7.0 everything works fine and the openapi.json file gets created during VS 2022 PostBuildEvent where I have the following code:
I tried using the environment variable DOTNET_ROLL_FORWARD=LatestMajor but it didn't work. :( Can you please shed some light on what could be the issue? Thank you, |
If the environment variable isn't working, all I can suggest for now to wait until #2799 is merged and then test it out with a version from our prerelease feed. If it then still doesn't work, we can look into it. |
Thank you @martincostello. I shall wait as you suggest. Thank you! |
Tracking issue to add support for
net8.0
.This issue does not cover adding support for any new language features added as part of .NET 8 (or 7), such as
required
members (see #2555), new ASP.NET Core features etc. Those will be treated as separate feature requests.The text was updated successfully, but these errors were encountered: