GeezerVison is showing github.com — Eliminate Duplicate SDK Files · Issue #52182 · dotnet/sdk
Eliminate Duplicate SDK Files #52182Open 9 / 119 of 11 issues completedOpen Epic 9 / 119 of 11 issues completed DescriptionEliminate duplicated files within the .NET SDK by utilizing hard links to reduce installation size and improve disk footprint.
By removing duplicate assemblies, we can reduce the SDK size by 35% (53 MB compressed, 140 MB on disk) on Linux x64.
Design: #51886
Current size status:
| Platform |
SDK Artifact |
10.0.105 Size (MB) |
11.0 preview2 Size (MB) |
11.0 preview3 Size (MB) |
11.0 preview4 Size (MB) |
Current % Gain |
Notes |
| linux-x64 |
tarball |
230 |
189 |
186 |
166 |
27.8% |
|
| linux-x64 |
deb |
164 |
122 |
125 |
106 |
35.3% |
SDK package only |
| linux-x64 |
rpm |
165 |
122 |
129 |
109 |
33.9% |
SDK package only |
| osx-x64 |
tarball |
228 |
N/A |
184 |
165 |
27.6% |
|
| osx-x64 |
pkg |
223 |
N/A |
184 |
165 |
26.0% |
|
| windows-x64 |
zip/tarball |
289 (zip) |
N/A |
226 (tarball) |
208 (tarball) |
28.0% |
|
Reacted by Frulfump and Adam Stachowicz Reacted by Noah Gilson, Logan Bussell, ali50m and Gabriele Sub-issuesCollapse Sub-issuesSub-issues9 of 119 of 11 Issues completedLoading 11 sub-issues Activitytmds commented on Dec 16, 2025 richlander commented on Feb 20, 2026 It would be good to understand the expected MCR benefit. KirillOsenkov commented on Mar 11, 2026 I might be naive, but can we test this scenario: a build uses hardlinks, hardlinked file gets copied to output, then overwritten there by a file with the different contents, it changes the contents of the originals.
If I'm right, this will be a disaster. KirillOsenkov commented on Mar 11, 2026 hmm, upon further thinking, hardlinks + double-writes would already wreak the same havoc, so this PR wouldn't make anything worse, actually. MichaelSimons commented on Oct 16, 2026 Assigning to @marcpopMSFT to follow up on last two open items - decision on removing zip support and getting Azure DevOps to uptake tarballs.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|