PDBs from Analyzer packages are added to csproj
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
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
- Create VS Extension project (.NET Framework 4.7.2)
- Add Microsoft.VisualStudio.SDK.Analyzers
- Compile

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).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a VS Extension project targeting .NET Framework 4.7.2 and Microsoft.VisualStudio.SDK.Analyzers, then inspect the generated csproj and the package contents. Compare analyzer packages with and without PDBs; done means only DLLs from the Analyzer package are added and the warning no longer occurs during compilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100