Skip to content

Include XML documentation files in NuGet packages for IntelliSense#139

Open
xiaomi7732 wants to merge 1 commit into
Azure:mainfrom
xiaomi7732:dev/saars/xml-doc
Open

Include XML documentation files in NuGet packages for IntelliSense#139
xiaomi7732 wants to merge 1 commit into
Azure:mainfrom
xiaomi7732:dev/saars/xml-doc

Conversation

@xiaomi7732
Copy link
Copy Markdown
Member

Fixes #85

Problem

The NuGet packages (Azure.Monitor.OpenTelemetry.Profiler and Microsoft.ApplicationInsights.Profiler.AspNetCore / Core) do not include XML documentation files, so consumers have no IntelliSense or IDE documentation for public APIs.

Changes

  • Directory.Build.props (both OTel and classic profiler trees) — Added <GenerateDocumentationFile>true</GenerateDocumentationFile> so all projects generate XML doc files during build.
  • Nuspec files (3 total) — Added XML file entries (*.xml or explicit .xml) alongside existing DLL/PDB entries so the generated docs ship inside the NuGet packages.
  • OpenTelemetryBuilderExtensions.cs — Added missing <summary> XML doc comment on the class to resolve the CS1591 warning introduced by enabling doc generation.

Verification

  • Both OTel and classic profiler solutions build and package successfully.
  • All 21 OTel profiler tests pass.
  • No new CS1591 warnings.

Enable GenerateDocumentationFile in Directory.Build.props for both the
OTel and classic profiler trees, and add corresponding XML file entries
to all three nuspec files so the generated docs ship inside the NuGet
packages. Add missing XML doc comment on OpenTelemetryBuilderExtensions
class to resolve CS1591 warning.

Fixes Azure#85

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No XML documentation file inside NuGet package

1 participant