[Feature Request] Support C# 14
When I'm using C# 14 extension members syntax, the docfx build fails with errors suggesting that my global.json selected SDK version and Directory.Build.props selected LangVersion is not being used.
Why is this? How/when can docfx support using C# 14 and/or the SDK and langversion specified by the user?
docfx using Roslyn API by referencing Microsoft.CodeAnalysis.* packages.
Latest version of docfx using 4.14.0 version.
C# 14 Extensions feature support seems to be added on v5.x. (Currently preview status) And it'll updated by PR #10859
After above PR merged. It need to add code to handle C# 14 extensions features.
- Handle
TypeKind.Extensionand extract defined extensions. - Handle
AssociatedSymboland extract information about extended method/property/user defined operator - Add page rendering logics for extensions
I don't know if docfx shows user-defined operators, but if it does, should also take into account the new += operator which was added in C# 14.
Getting a docfx release that at least doesn't totally break on C# 14 syntax would be helpful. Actually including C# 14 extension members in the docs could be a separate release, if that allows the unblocking release to come sooner.
Any ETA on this? This is affecting us to migrate to .NET 10.
I saw that Roslyn 5.0 packages were released 2 weeks ago (e.g. https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp).
Would that allow some progress on this issue?
Seems like @dependabot already created #10906
also https://github.com/dotnet/docfx/pull/10859