Repository navigation
Revert "Deduplicate files using links in mac and linux installers" - #4800
Merged
MichaelSimons merged 1 commit intoFeb 11, 2026
Merged
Conversation
This reverts SDK commit 1ef20e450e1b9b5e94ebc86dec1eb3080bd86713 which introduced CopyPreservingRelativeSymlinks to preserve symbolic links during installer layout copy operations for mac and linux.
ViktorHofer
approved these changes
Feb 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reverts the introduction of CopyPreservingRelativeSymlinks in the SDK installer layout pipeline because the signing toolchain does not handle symbolic links correctly for macOS/Linux installers.
Changes:
- Removes the
CopyPreservingRelativeSymlinksMSBuild task and its unit tests. - Switches installer layout copy steps back to MSBuild’s built-in
Copytask. - Simplifies SDK acquisition artifact lookup and removes E2E installer symlink verification tests (macOS + Linux).
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/sdk/test/sdk-tasks.Tests/MockBuildEngine.cs | Removes standalone mock build engine helper (now inlined elsewhere). |
| src/sdk/test/sdk-tasks.Tests/DeduplicateAssembliesWithLinksTests.cs | Inlines MockBuildEngine into the test file. |
| src/sdk/test/sdk-tasks.Tests/CopyPreservingRelativeSymlinksTests.cs | Removes tests for the reverted task. |
| src/sdk/test/Microsoft.NET.TestFramework/SdkTestContext.cs | Simplifies artifact discovery API (now requires exactly one match). |
| src/sdk/test/EndToEnd.Tests/Utilities/SymbolicLinkHelpers.cs | Renames tar extraction helper and simplifies package symlink verification helper. |
| src/sdk/test/EndToEnd.Tests/GivenSdkArchives.cs | Updates to use .tar.gz-specific extraction helper and adjusted skip behavior. |
| src/sdk/test/EndToEnd.Tests/GivenDotNetMacInstallers.cs | Removes macOS installer symlink test. |
| src/sdk/test/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs | Removes Linux installer symlink tests; keeps dependency validation. |
| src/sdk/src/Tasks/sdk-tasks/sdk-tasks.InTree.targets | Removes UsingTask entry for reverted task. |
| src/sdk/src/Tasks/sdk-tasks/CopyPreservingRelativeSymlinks.cs | Removes the reverted task implementation. |
| src/sdk/src/Layout/redist/targets/GenerateInstallerLayout.targets | Replaces symlink-preserving copy with MSBuild Copy for intermediate layout generation. |
| src/sdk/src/Layout/pkg/dotnet-sdk.proj | Replaces symlink-preserving copy with MSBuild Copy for Linux package layout generation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MichaelSimons
enabled auto-merge (squash)
February 11, 2026 23:38
MichaelSimons
added a commit
to MichaelSimons/dotnet
that referenced
this pull request
Feb 14, 2026
…otnet#4800) This reverts commit d5a0c5a.
MichaelSimons
added a commit
that referenced
this pull request
Feb 17, 2026
tmds
pushed a commit
to tmds/dotnet
that referenced
this pull request
Feb 26, 2026
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.
This reverts SDK commit 1ef20e450e1b9b5e94ebc86dec1eb3080bd86713 which introduced CopyPreservingRelativeSymlinks to preserve symbolic links during installer layout copy operations for mac and linux. SignTool does not handle the symbolic links correctly. This was not caught in PR validation because we don't test sign linux/mac in PRs.