Skip to content

PDB files are not copied from package lib folder to the consumer bin folder #1383

@wasker

Description

@wasker

Sample code:

  1. PackagedLibrary - library, which is packaged as NuGet, includes PDB file along with DLL; currently published as PackagedLibrary-1.0.0-beta.
  2. LibraryConsumer - ASP.NET Core 1.1 project, consumes library from NuGet.

Repro:

  1. Unzip, restore packages, rebuild all.
  2. Open LibraryConsumer\bin\Debug\net452\win7-x86. Observe that there's only PackagedLibrary.dll, but not PackagedLibrary.pdb

Expectation: PDB is also copied to consumer project output.

In fact, if you create a new ASP.NET Web Application (.NET Framework) project and add same package there (Install-Package -Id PackagedLibrary -Version 1.0.0-beta), you'll see PDB being copied to output.

Why is this important? The project I'm working on is a complex web application with a lot of dependencies on internal libraries. All libraries are indexing their source code in PDB and packaging PDBs along with DLLs. If problem occurs and library user needs to debug, they can simply step into the library call. If PDBs are not automatically copied, it's impossible to do (unless you know about this issue and copy PDBs manually).

PackagePdbAspNetCore.zip

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