Skip to content

Switch API docs from DefaultDocumentation to ApiMark - #155

Merged
Malcolmnixon merged 6 commits into
mainfrom
nuget-api-docs
Jun 1, 2026
Merged

Malcolmnixon merged 6 commits into
mainfrom
nuget-api-docs

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Replace DefaultDocumentation package reference and all associated MSBuild configuration (post-processing UsingTask, custom pack target) with the DemaConsulting.ApiMark.MSBuild package, matching the pattern established in TestResults.

  • Remove DefaultDocumentation v1.0.2
  • Remove PostProcessApiDocs inline C# MSBuild task
  • Remove PostProcessApiDocsTarget
  • Remove custom IncludeApiDocsInPackage target
  • Add DemaConsulting.ApiMark.MSBuild v0.1.3
  • Add ApiMark configuration (ApiMarkOutputDir, ApiMarkPackDocs, DisableApiMark)

Replace DefaultDocumentation package reference and all associated MSBuild
configuration (post-processing UsingTask, custom pack target) with the
DemaConsulting.ApiMark.MSBuild package, matching the pattern established
in TestResults.

- Remove DefaultDocumentation v1.0.2
- Remove PostProcessApiDocs inline C# MSBuild task
- Remove PostProcessApiDocsTarget
- Remove custom IncludeApiDocsInPackage target
- Add DemaConsulting.ApiMark.MSBuild v0.1.3
- Add ApiMark configuration (ApiMarkOutputDir, ApiMarkPackDocs, DisableApiMark)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 1, 2026 21:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the build-time API documentation generation setup by switching the project to use DemaConsulting.ApiMark.MSBuild and adding MSBuild properties to control docs output and packing behavior.

Changes:

  • Add DemaConsulting.ApiMark.MSBuild package reference to the library project.
  • Add ApiMark MSBuild properties to control output directory, packing, and multi-targeting behavior.
  • Update the local .NET tool manifest entries to include rollForward settings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/DemaConsulting.SpdxModel/DemaConsulting.SpdxModel.csproj Adds ApiMark MSBuild package + properties to generate and (conditionally) pack API docs for a single TFM.
.config/dotnet-tools.json Adds rollForward settings to each tool entry in the local tool manifest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/DemaConsulting.SpdxModel/DemaConsulting.SpdxModel.csproj Outdated
Malcolmnixon and others added 2 commits June 1, 2026 17:47
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 1, 2026 21:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Malcolm Nixon and others added 2 commits June 1, 2026 18:41
Add <example> blocks to the five members most likely to be reached
for first by users and AI coding agents:

- Spdx2JsonDeserializer.Deserialize - load from JSON string
- Spdx2JsonSerializer.Serialize - save to JSON string
- SpdxDocument.Validate - non-obvious List<string> usage pattern
- SpdxDocument.GetRootPackages - iterating described packages
- SpdxRelationships.Add - adding relationships to a document

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 1, 2026 23:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread src/DemaConsulting.SpdxModel/SpdxDocument.cs Outdated
Comment thread src/DemaConsulting.SpdxModel/DemaConsulting.SpdxModel.csproj Outdated
- SpdxDocument.cs: narrow constructor remarks to non-nullable string properties
  and explicitly note nullable strings (e.g. Comment) remain null unless set
- DemaConsulting.SpdxModel.csproj: fix ApiMark conditions so the outer build
  (empty TargetFramework) is treated as the packaging context — DisableApiMark
  now only fires for non-empty, non-primary frameworks; ApiMarkPackDocs is true
  for the empty (outer) build and for the primary TFM
@Malcolmnixon
Malcolmnixon merged commit 4814d65 into main Jun 1, 2026
12 checks passed
@Malcolmnixon
Malcolmnixon deleted the nuget-api-docs branch June 1, 2026 23:39
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.

3 participants