Repository navigation
Conversation
With full paths, the ILRepack command line of the net472 plugins (about 100 input assemblies) gets over 11,000 characters. Exec runs it through a batch file, and on Windows Server 2016 a character was dropped from a 9,383-character command (cmd.exe's 8,191-character limit for batch file lines), so ILRepack failed with "Input file not found". Passing the inputs by file name from the output directory keeps the command around 3,300 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
12 tasks
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.
In Release,
ILRepackerpasses every input assembly to ILRepack with its full path: about 90 to 120 assemblies for the net472 plugins.Execruns the command through a temporary batch file, and the command line gets long: 11,082 characters forsrc/Local(net472) from a 47-character repository path.On a Windows Server 2016 build agent, a 9,383-character command lost a character in the middle: ILRepack failed with
Input file not found: ...\System.Security.Cryptography.ProectedData.dll(note "Proected"). That matchescmd.exe's 8,191-character limit for lines in batch files. The same kind of command runs fine on Windows 11 here, so the failure depends on the Windows version and on the repository path.This change runs ILRepack with
WorkingDirectoryset to the output directory, and passes the input assemblies by file name, since they all come from$(OutputPath)*.dll. The key file path is made absolute, since it was relative to the project directory. The/outand/libarguments are unchanged. The command forsrc/Local(net472) drops from 11,082 to 3,270 characters, well under the limit on any Windows version.🤖 Generated with Claude Code