Skip to content

Conversation

@GangWang01
Copy link
Member

@GangWang01 GangWang01 commented Dec 2, 2025

Summary

dotnet/sdk#49707 added a new publish-related property PublishReferencesSymbols. Add the corresponding doc.


Internal previews

📄 File 🔗 Preview link
docs/core/project-sdk/msbuild-props.md MSBuild reference for .NET SDK projects

Copilot AI review requested due to automatic review settings December 2, 2025 08:49
@GangWang01 GangWang01 requested review from a team and gewarren as code owners December 2, 2025 08:49
@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 2, 2025
Copilot finished reviewing on behalf of GangWang01 December 2, 2025 08:50
Copy link
Contributor

Copilot AI left a comment

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 adds documentation for the newly introduced PublishReferencesSymbols MSBuild property, which was added to the .NET SDK in dotnet/sdk#49707. The documentation follows the established pattern for similar publish-related properties in the file.

  • Adds PublishReferencesSymbols to the table of contents in alphabetical order
  • Documents the property's behavior for copying symbol files (PDB files) during publish
  • Specifies the default value as true

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.


### PublishReferencesSymbols

When this property is `true`, symbol files (also known as PDB files) for the project's references are copied to the publish directory. This property defaults to `true`.
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

[nitpick] For consistency with the similar property PublishReferencesDocumentationFiles (line 529), consider adding the clarifying phrase "instead of just run-time assets like DLL files" to explain what normally gets copied. The full sentence would read: "When this property is true, symbol files (also known as PDB files) for the project's references are copied to the publish directory, instead of just run-time assets like DLL files."

Suggested change
When this property is `true`, symbol files (also known as PDB files) for the project's references are copied to the publish directory. This property defaults to `true`.
When this property is `true`, symbol files (also known as PDB files) for the project's references are copied to the publish directory, instead of just run-time assets like DLL files. This property defaults to `true`.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants