GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Eliminate Duplicate SDK Files · Issue #52182 · dotnet/sdk

Eliminate Duplicate SDK Files #52182

New issue
Copy link
New issue
Copy link
Open
Epic
9 / 119 of 11 issues completed
Open
Eliminate Duplicate SDK Files#52182
Epic
9 / 119 of 11 issues completed
Copy link
Assignees
marcpopMSFT
Labels
Area-acquisitionuntriagedRequest triage from a team member

Description

@MichaelSimons
MichaelSimons
opened on Dec 16, 2025
Issue body actions

Eliminate 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-issues

Collapse Sub-issuesSub-issues

9 of 119 of 11 Issues completed
Loading 11 sub-issues

Activity

Next
  1. MichaelSimons
    self-assigned this
    on Dec 16, 2025
  2. MichaelSimons
    added
    EpicGroups multiple user stories. Can be grouped under a theme.
    Area-acquisition
    on Dec 16, 2025
  3. MichaelSimons
    added the
    Feature
    issue type on Dec 16, 2025
  4. dotnet-policy-service
    added
    untriagedRequest triage from a team member
    on Dec 16, 2025
  5. MichaelSimons
    added a parent issue on Dec 16, 2025
    • Produce a smaller SDK #41128
  6. MichaelSimons
    added sub-issues on Dec 16, 2025
    • [Deduplicate SDK Files] Update SDK layout to utilize links for duplicate files #52183
    • [Deduplicate SDK Files] Validate Installer support for hard links #52185
    • [Deduplicate SDK Files] Ensure SignTool supports hard links #52184
    • [Deduplicate SDK Files] Implement SDK tests to validate hard link behavior within archives #52190
    • [Deduplicate SDK Files] Investigate feasibility of preserving hard links with Windows Installers #52191
    • [Deduplicate SDK Files] Remove special AssemblyLoadContext handling and layout logic in dotnet-watch to eliminate duplicate files #52192
    • [Deduplicate SDK Files] Add Windows tarball support for .NET components #52194
    • [Deduplicate SDK Files] Investigate and mitigate zip size increase with hardlinks #52193
    • [Deduplicate SDK Files] Release infra changes for Windows tarballs #52202
  7. 3 remaining items

  8. MichaelSimons
    added a sub-issue on Dec 16, 2025
    • [Deduplicate SDK Files] Updates to utilize Windows tarballs #52208
  9. tmds commented on Dec 16, 2025

    @tmds
    tmds
    on Dec 16, 2025
    Member
    More actions

    We're already replacing some files with symlinks.

    We tried hard links first and some tool in our build pipeline struggled with that: dotnet/source-build#3535 (comment).

    cc @omajid

    Reacted by Omair Majid
  10. MichaelSimons
    removed sub-issues on Jan 12, 2026
    • [Deduplicate SDK Files] Investigate/mitigate zip size increase with hardlinks #52207
    • [Deduplicate SDK Files] Remove duplicate file logic in dotnet-watch #52206
  11. MichaelSimons
    added a sub-issue on Feb 3, 2026
    • Investigate consolidating ReplaceFilesWithSymbolicLinks into DeduplicateAssembliesWithLinks #52815
  12. richlander commented on Feb 20, 2026

    @richlander
    richlander
    on Feb 20, 2026
    Member
    More actions

    It would be good to understand the expected MCR benefit.

  13. KirillOsenkov commented on Mar 11, 2026

    @KirillOsenkov
    KirillOsenkov
    on Mar 11, 2026
    Member
    More actions

    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.

  14. KirillOsenkov commented on Mar 11, 2026

    @KirillOsenkov
    KirillOsenkov
    on Mar 11, 2026
    Member
    More actions

    hmm, upon further thinking, hardlinks + double-writes would already wreak the same havoc, so this PR wouldn't make anything worse, actually.

  15. v-HarithaVattikuti
    added a commit that references this issue on May 26, 2026

    Update install scripts to v2026.05.19 (#736)

    8404272
  16. MichaelSimons
    removed a sub-issue on Jun 9, 2026
    • Investigate consolidating ReplaceFilesWithSymbolicLinks into DeduplicateAssembliesWithLinks #52815
  17. marcpopMSFT
    removed
    EpicGroups multiple user stories. Can be grouped under a theme.
    on Aug 12, 2026
  18. marcpopMSFT
    changed the issue type from
    Feature
    to
    Epic
    on Aug 12, 2026
  19. MichaelSimons
    assigned
    marcpopMSFT
    and unassigned
    MichaelSimons
    on Oct 16, 2026
  20. MichaelSimons commented on Oct 16, 2026

    @MichaelSimons
    MichaelSimons
    on Oct 16, 2026
    MemberAuthor
    More actions

    Assigning to @marcpopMSFT to follow up on last two open items - decision on removing zip support and getting Azure DevOps to uptake tarballs.

    Reacted by Marc Paine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @marcpopMSFT
    marcpopMSFT

Labels

Area-acquisitionuntriagedRequest triage from a team member

Type

Epic

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.