Skip to content

3rd party XML documentation files in NuGet packages are not copied to my project's build folder #9498

@fizxmike

Description

@fizxmike

I've dug around for a solution to this problem, but I only find issues related to dotnet publish not including a project's xml documentation. My issue is that XML documentation files in NuGet packages are not copied to my project's build folder. I hope the distinction is clear to a human (google couldn't get it).

Steps to reproduce

Add some_other_library nuget package which includes xml documentation to you project. Do dotnet build

Expected behavior

The some_other_library.xml is included in the build (output) folder like so:
image
(screenshot from output of VS 2017)

Actual behavior

some_other_library.xml file is not present in the build (output) folder:
image
(screenshot of output of dotnet cli)

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.101)

Product Information:
 Version:            2.1.101
 Commit SHA-1 hash:  6c22303bf0

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.101\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6
  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions