Request for Support of .NET 8.0 Features Including Primary Constructors and File-Scoped Namespaces #2361
Labels
A-Highlighting
Area: Code colored syntax highlighting
C-enhancement
Category: Enhancement or feature request
Problem
Hello MDBook Team,
I hope this message finds you well. I am currently utilizing MDBook for documenting our .NET projects and have recently started exploring the new features available in .NET 8.0. Notably, the introduction of Primary Constructors and File-Scoped Namespaces offers a streamlined and concise syntax that enhances the readability and maintainability of .NET applications.
However, I've encountered an issue where MDBook does not seem to support these new .NET 8.0 syntax features. Specifically, the Primary Constructors allow defining classes with a much cleaner syntax, and File-Scoped Namespaces reduce the nesting within files, both of which are beneficial for code clarity and organization.
Example
Here's an example demonstrating the new syntax:
This syntax simplifies class definitions significantly and is something we are adopting widely within our projects.
Request
Could the MDBook team consider adding support for these .NET 8.0 features? This enhancement would greatly benefit .NET developers who are using MDBook for their documentation needs, allowing them to utilize all the latest language features without compatibility issues in their documentation workflow.
Thank you for considering this request. I am looking forward to your positive response and am happy to assist with testing or providing further examples if needed.
Best regards,
Daniel Lozano
Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: