From 86f3ea14c8cfe9277e89ea759936bb7c3f4898bd Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Tue, 9 Jun 2026 12:52:04 +0200 Subject: [PATCH] Restore the Windows stack-extension and SortResX build targets The WPF host carried two ILSpy.csproj build steps the Avalonia port left behind. ApplyStackExtension runs editbin /stack:16777216 on the apphost so deeply nested types/expressions don't overflow the 1 MB main-thread stack during decompilation (the managed runtime can't grow the main thread's stack at run time on Windows). SortResX keeps the .resx entries sorted so localisation diffs stay clean; its script was still in BuildTools but no target invoked it. Both are gated to do nothing off Windows / without the MSVC tools / on CI, so they only act in the same local-Windows scenario they did before. The VC-tools props import is restored alongside, since it is what populates $(VCToolsVersion) for the editbin gate. Assisted-by: Claude:claude-opus-4-8:Claude Code --- ILSpy/ILSpy.csproj | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/ILSpy/ILSpy.csproj b/ILSpy/ILSpy.csproj index 271cb6bda..6ce7e7749 100644 --- a/ILSpy/ILSpy.csproj +++ b/ILSpy/ILSpy.csproj @@ -165,4 +165,46 @@ Condition="!$([MSBuild]::IsOSPlatform('Windows'))" /> + + + + Microsoft.VCToolsVersion.default.props + $(MSBuildToolsPath)\..\..\..\VC\ + + $(MSBuildToolsPath)\..\..\..\..\VC\ + $(VCBasePath)Auxiliary\Build\$(VCToolsVersionPropsFileNameDefault) + + + + + + + + + + + + + + + powershell -NoProfile -ExecutionPolicy Bypass -File BuildTools/sort-resx.ps1 + + + + + + + + +