Introduce an atomic two-phase extraction and commit flow for the setup tool: add staging (.new/.bak per-session) and commit/rollback/finalize helpers (SetupWriteFileAtomic, SetupCommitFile, SetupRollbackFile, SetupFinalizeFile, SetupGetSessionId) and use a staged list during extraction to commit files only after successful staging. Update SetupUseExistingKsi and SetupUpdateKsi to use file-size/content comparisons and safer rename semantics. Adjust progress reporting and skip/normalize architecture-specific paths during extraction.
Convert command execution APIs to accept argument lists instead of single command strings . These changes improve argument separation/quoting safety and allow complex command invocations (including PowerShell-based CMake setup) to run in a single process session.
Major refactor and feature additions across CustomBuildTool:
- Replace synchronous JsonSerializer.Deserialize usages with JsonSerializer.DeserializeAsync (passing CancellationToken) for HTTP/KeyVault/NuGet/GitHub responses to avoid blocking and improve cancellation handling.
- Optimize ECDSA hashing: use ReadOnlySpan, static SHA{256,384,512}.HashData fast-paths and allocation-free IncrementalHash fallback; consolidate incremental helper.
- Add BuildThirdParty.cs: new utility to verify vendored third-party library versions against GitHub releases, with various helpers (version parsing, GitHub queries, regexes).
- Add CLI command -check-thirdparty and register it in Program.cs to run version checks.
- Harden BuildAzure.GetAzureADToken: build form body as bytes, zero secret memory, and send as ByteArrayContent.
- Revise Build logic and file handling: normalize Path.Join usage, normalize path separators in MSIX mapping, improve BuildChecksumsFile collection logic, validate exe presence before export checks, and dedupe file lists before checksum computation.
- Update BuildHttpClient.CreateHttpClient settings and use DeserializeAsync in SendMessage; adjust MaxAutomaticRedirections removal.
- Misc fixes: environment block parsing loop fix, safer registry value handling, reorder search-path logic, add Regex Using and GeneratedRegex helpers, add CA1416 platform-suppression, and small csproj cleanup.
These changes improve async/cancellation behavior, memory safety, hashing performance, and add a new third-party checking feature.
Add routines to download GitHub IP ranges and Azure service tags and return address prefixes Bump HTTP version to 3.0 for a release request, tidy MSIX packaging steps, and update author year.