dotnet / dotnet/sdk

How to not output the .pdb of the referenced project to the publish folder?

Open
#49,506 0 comments 0 reactions 0 assignees View on GitHub
Area-WebSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I want to keep .xml and .pdb in the debug and release folders, but not in the publish folder.

I know MSBuild has the following properties:
`PublishDocumentationFile` - Control whether the .xml file of the main project is published to the publish folder.
`PublishReferencesDocumentationFiles` - Control whether the .xml file of the referenced project is published to the publish folder.
`CopyOutputSymbolsToPublishDirectory` - Control whether the .pdb file of the main project is published to the publish folder.

But how to control whether the .pdb file of the referenced project is published to the publish folder?
I couldn't find the corresponding MSBuild property.
How should I do?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.