From 07355c127de95c4169095fa604b6d159db39a70a Mon Sep 17 00:00:00 2001 From: Gang Wang Date: Tue, 2 Dec 2025 16:44:33 +0800 Subject: [PATCH 1/2] Add the doc for newly added publish-related property PublishReferencesSymbols --- docs/core/project-sdk/msbuild-props.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index 1a049f6c169a6..2a7b92c5b6201 100644 --- a/docs/core/project-sdk/msbuild-props.md +++ b/docs/core/project-sdk/msbuild-props.md @@ -370,6 +370,7 @@ The following MSBuild properties are documented in this section: - [PublishDocumentationFile](#publishdocumentationfile) - [PublishDocumentationFiles](#publishdocumentationfiles) - [PublishReferencesDocumentationFiles](#publishreferencesdocumentationfiles) +- [PublishReferencesSymbols](#publishreferencessymbols) - [PublishRelease](#publishrelease) - [PublishSelfContained](#publishselfcontained) - [RollForward](#rollforward) @@ -527,6 +528,10 @@ This property is an enablement flag for several other properties that control wh When this property is `true`, XML documentation 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`. +### 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`. + ### PublishRelease The `PublishRelease` property informs `dotnet publish` to use the `Release` configuration by default instead of the `Debug` configuration. This property was introduced in .NET 7. From 596e1988264c8f51fb07d0e6fe3866710383481f Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:29:20 -0800 Subject: [PATCH 2/2] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/core/project-sdk/msbuild-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index 2a7b92c5b6201..8df84ca9ca4a6 100644 --- a/docs/core/project-sdk/msbuild-props.md +++ b/docs/core/project-sdk/msbuild-props.md @@ -530,7 +530,7 @@ When this property is `true`, XML documentation files for the project's referenc ### 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`. +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`. ### PublishRelease