Paket icon indicating copy to clipboard operation
Paket copied to clipboard

PDBs from Analyzer packages are added to csproj

Open antineutrino opened this issue 5 years ago • 1 comments

Description

PDBs files from Analyzer packages are added to the csproj file. This creates a warning: "PE image doesn't contain managed metadata".

Expample: https://www.nuget.org/packages/Microsoft.VisualStudio.SDK.Analyzers/16.6.11 (has PDBs) https://www.nuget.org/packages/Microsoft.VisualStudio.SDK.Analyzers/16.5.5 (no PDBs)

Repro steps

  1. Create VS Extension project (.NET Framework 4.7.2)
  2. Add Microsoft.VisualStudio.SDK.Analyzers
  3. Compile

image

Expected behavior

PDBs are not added, only DLLs.

Actual behavior

PDBs from Analyzer package are added to csproj.

Known workarounds

None

Latest paket version is used (https://github.com/fsprojects/Paket/releases/tag/5.247.4).

antineutrino avatar Jul 02 '20 09:07 antineutrino

Any update on this?

antineutrino avatar Nov 11 '21 06:11 antineutrino