Skip to content

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

Open
@KuHai-A

Description

@KuHai-A

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions