WIP: Generate XML documentation from DocumentationAttribute for IDE IntelliSense #12
Reference in New Issue
Block a user
Delete Branch "copilot/enhance-documentation-tooltip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Custom attributes don't render in IDE tooltips. The
DocumentationAttributecontains rich metadata (description, parameters, examples) but IDEs show only the raw attribute syntax since they require XML documentation files.Implementation
XmlDocGenerator MSBuild Package
DocumentationAttributefrom compiled assemblies<summary>,<remarks>,<example>elementsAfterTargets="Build"to process final output assembliesIntegration Points
XmlDocGeneratorLocal.props- Local development (path resolution for net9.0 runtime)build/*.targets- NuGet consumer integration via MSBuild extensibilityOmegaLeo.HelperLib.Documentationpackage dependency - transitive installationTest Infrastructure
XML Generation Example
Configuration Updates
<GenerateDocumentationFile>true</GenerateDocumentationFile>to Changelog and Game projects (missing baseline XML generation)$(IntermediateOutputPath)to$(TargetDir)(IDEs read from bin, not obj)Behavior
Library developers (ProjectReference): IDEs show source code, attributes visible in context
Package consumers (DLL reference): IDEs read XML files, rich IntelliSense from DocumentationAttribute
Works with Visual Studio, Rider, VS Code. Zero configuration for consumers - MSBuild targets auto-import from NuGet package cache.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Pull request closed