Skip to content

Fix LT-22527: Repair the ILRepack build functionality#910

Merged
jasonleenaylor merged 2 commits into
mainfrom
bugfix/LT-22527
May 26, 2026
Merged

Fix LT-22527: Repair the ILRepack build functionality#910
jasonleenaylor merged 2 commits into
mainfrom
bugfix/LT-22527

Conversation

@jasonleenaylor
Copy link
Copy Markdown
Contributor

@jasonleenaylor jasonleenaylor commented May 22, 2026

  • The SDK targets are always imported after everything in the project file. So the SDK's empty AfterBuild silently overwrote the one from ILRepack.targets with no warning
  • Change from the AfterBuild override pattern to AfterTargets=Build

This change is Reviewable

* The SDK targets are always imported after everything in the
  project file. So the SDK's empty `AfterBuild` silently overwrote
  the one from ILRepack.targets with no warning
* Change from the `AfterBuild` override pattern to `AfterTargets=Build`

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@mark-sil mark-sil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mark-sil reviewed 5 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on jasonleenaylor).

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

NUnit Tests

    1 files  ±0      1 suites  ±0   11m 35s ⏱️ +21s
4 206 tests ±0  4 136 ✅ ±0  70 💤 ±0  0 ❌ ±0 
4 215 runs  ±0  4 145 ✅ ±0  70 💤 ±0  0 ❌ ±0 

Results for commit 253ed95. ± Comparison against base commit a898ebd.

♻️ This comment has been updated with latest results.

SDK projects package references conflict with the internalized
reapacked assemblies. Copy un-merged assembly before ILRepack overwrites
it, then have the test project compile and run against that copy:

- ILRepack.targets: copy to .PreMerge.dll and use it as ILRepack input
- Test csproj: ProjectReference with ReferenceOutputAssembly=false plus
  explicit Reference to the PreMerge DLL via HintPath
- Test App.config: codeBase redirect so the runtime loads the PreMerge
  copy instead of the packed DLL from the shared output directory
- Directory.Packages.props: pin System.Text.Encoding.CodePages to 10.0.3
  (the PreMerge HintPath reference loses NuGet graph unification, so the
  transitive version from SIL.Machine must be pinned explicitly)
- Heat-exclude files: exclude PreMerge.dll from WiX 3 and WiX 6 harvests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasonleenaylor jasonleenaylor merged commit 1b33b29 into main May 26, 2026
6 of 7 checks passed
@jasonleenaylor jasonleenaylor deleted the bugfix/LT-22527 branch May 26, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants