Repository navigation
Embed PDBs in the shipped DLLs and stop producing a symbols package - #4173
Merged
Merged
Conversation
… package Release builds of StyleCop.Analyzers and StyleCop.Analyzers.CodeFixes now use DebugType=embedded. The package no longer sets IncludeSymbols, so the legacy .symbols.nupkg (DLLs, PDBs and sources) is no longer produced, and the nuspec no longer lists the .pdb files or the source files, which only ever went into that symbols package. The embedded PDBs are deflate-compressed: the analyzer DLLs grow by 399,872 bytes (27%) in total.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4173 +/- ##
=======================================
Coverage 97.41% 97.41%
=======================================
Files 1118 1118
Lines 124962 124962
Branches 4203 4203
=======================================
Hits 121734 121734
Misses 2116 2116
Partials 1112 1112 🚀 New features to boost your workflow:
|
AArnott
marked this pull request as ready for review
October 8, 2026 17:18
This was referenced Nov 11, 2026
Bump StyleCop.Analyzers from 1.2.0-beta.556 to 1.3.180
microsoftgraph/aspnetcore-webhooks-sample#436
Open
Closed
Open
This was referenced Nov 24, 2026
Open
Open
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release builds of
StyleCop.AnalyzersandStyleCop.Analyzers.CodeFixesnow embed their portable PDBs (DebugType=embedded), and the package stops producing the legacy.symbols.nupkg.Changes
DebugType=embeddedfor Release in both shipped projects. Debug builds keep separate portable PDBs (seeDirectory.Build.props), which coverlet uses.IncludeSymbols(and theIncludeSymbols=falseoverride on the metadata package pack)..pdblines fromStyleCop.Analyzers.nuspec, and thesrc/**lines too. Those source files only ever went into the symbols package. If we droppedIncludeSymbolsbut kept those lines, about 430.csfiles would end up in the main package.Sizes (Release, master 53ce0bf)
StyleCop.Analyzers.dllStyleCop.Analyzers.CodeFixes.dllStyleCop.Analyzers.Unstablenupkg.symbols.nupkgStyleCop.Analyzers.dllon its own grows +32.1%.StyleCop.Analyzers.resources.dllfiles are resource-only and had no PDBs, so they don't change.Interaction with #4123 (release workflow)
#4123's
release.ymlmentions.symbols.nupkg. Its validation step skips*.symbols.nupkg, its header comment says the legacy symbols package is attached to the GitHub release, and the push step passes--no-symbols. Once this PR merges, no.symbols.nupkgis produced, so that skip is a no-op. The comment and--no-symbolscan be cleaned up in #4123; nothing there breaks.CI verification
The
nuget-packagesartifact from this PR's run 37807524675 (Windows CI, Release) contains onlyStyleCop.Analyzers.Unstable(900,390 B, 20 files) and the metadata package (4,203 B). There's no.symbols.nupkg, no.pdbfiles and nosrc/. Both DLLs carry the embedded PDB (debug directory entryMPDB):StyleCop.Analyzers.dll: 1,404,928 BStyleCop.Analyzers.CodeFixes.dll: 480,256 BThese are slightly larger than in the table above because current master has more code than 53ce0bf.