fsprojects / fsprojects/Paket

PDBs from Analyzer packages are added to csproj

Open
#3,877 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
  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).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.