Skip to content

Validate WinGetScout on .NET 11 - #94

Draft
harder wants to merge 4 commits into
mainfrom
upgrade/dotnet-11
Draft

harder wants to merge 4 commits into
mainfrom
upgrade/dotnet-11

Conversation

@harder

@harder harder commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

This draft tests the .NET 11 upgrade on the existing Linux and Windows CI jobs.

  • Retarget the app, tests, and packaging to SDK 11.0.100 and regenerate all three lockfiles. Use the runtime-provided Microsoft.Extensions logging and options assemblies.
  • Use .NET 11's suspended process start, argument list, and explicit handle inheritance for the Windows CLI backend. Keep the per-command Job Object, output encoding, bounded capture, and cleanup after the root process exits.
  • Clip terminal text without allocating each grapheme. Preserve Terminal.Gui cell widths and test wide characters, combining marks, emoji, and tab handling.
  • Update System.IO.Abstractions to 23.0.1 for its Unix root-drive fix. Keep the private Application Insights 2.x constraint while MTP 2.5.3 requires its older API.

Local validation passed all 759 managed tests, 14 Node tests, workflow lint, Linux Native AOT publish and mock startup, and locked restores for both Windows architectures and COM modes. Both managed Windows target variants compiled. Hosted Windows jobs cover process behavior and Native AOT mock startup. Live portable and registered-MSIX COM checks still need WinGet-equipped Windows.

The controlled Linux x64 AOT comparison used equivalent Scout source and dependency versions. Median time to the first mock frame was 28.3 ms on .NET 10.0.15 and 28.0 ms on .NET 11.0.0 across 15 interleaved runs each. The executable went from 20,231,376 to 20,182,152 bytes. Runtime Async reduced it by another 75,024 bytes, and size optimization alone saved 297,360 bytes. Startup did not measurably improve. Both options are candidates for Windows measurements. The focused clipping benchmark reduced allocation from 865 to 36 bytes per call and elapsed time by about 20% on six sample strings.

The newest matching WinGet preview pair (1.30.100-preview) compiled in both managed COM modes and has the same public COM IDL as 1.29.380. The 1.30.180-preview engine has no matching published projection. Unreleased upstream IDL adds installer release dates, source agreement state and disclosure, and dependency-only installs. Those need a released matching pair and Windows runtime validation before use.

TextMateSharp 2.0.5 and Wcwidth 5.0.2 passed the Linux suite in a scratch build. The TextMateSharp changes target syntax tokenization. Wcwidth's allocation improvement targets whole strings, while the pinned Terminal.Gui calls the per-rune method. Both remain transitive.

This branch has not been deployed

No deployments
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.

1 participant