Repository navigation
[SDK] Pass the ILRepack arguments through a response file and run ILRepack on .NET - #217
Merged
Merged
Conversation
Nice3point
marked this pull request as ready for review
October 14, 2026 21:27
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.
Summary of the Pull Request
What is this about:
Repacks an add-in on Windows with a short ILRepack command line and without the 260-character path limit.
Description:
What changed
RepackAddinFileswrites the output, the reference folders, and the input assemblies toILRepack.rspin the intermediate folder, one argument per line, and passes the file to ILRepack as@ILRepack.rsp./noRepackResas before.dotnethost on Windows, as it already does on Linux and macOS.Where to look
ILRepack.runtimeconfig.jsonfor thedotnethost since the same version. A project on an older ILRepack fails at the repack step, and the templates reference 2.0.48./lib:folder ending in\is gone.PathTooLongExceptiononce a path exceeds 260 characters, even with long paths enabled in Windows. Thedotnethost runs it on .NET, which has no such limit. Running on .NET needs a .NET 6 or later runtime, which everydotnet buildhas.How verified
Built a Revit 2025 release configuration (
net8.0, repack enabled) of an add-in that merges 95 assemblies, from a root of 156 characters, against the SDK packed locally from this branch:MSB3073, exit code 9020PathTooLongException: 65 of the 95 input paths exceed 260 characters.JetBrains.Annotationstypes, a method reference warning, and a missing debug information notice.dotnet pack -c Release, with no errors.pack test, which builds the generated templates against the SDK of this branch. Neither ran locally:pack testinstalls the templates into the global hive.DOTNET_HOST_PATHcomes from the .NET SDK resolver anddotnetonPATHis the fallback.Open questions