9c2fac0b5a
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.
15 lines
1.8 KiB
C#
15 lines
1.8 KiB
C#
// This file is used by Code Analysis to maintain SuppressMessage
|
|
// attributes that are applied to this project.
|
|
// Project-level suppressions either have no target or are given
|
|
// a specific target and scoped to a namespace, type, member, etc.
|
|
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("IntelliSenseCorrection", "IDE0003", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0017:Simplify object initialization", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0028:Simplify collection initialization", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0063:Use simple 'using' statement", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0090:Use 'new(...)'", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2211:Non-constant fields should not be visible", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Maintainability", "CA1515:Consider making public types internal", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Maintain consistency/readability of code.")]
|
|
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "Maintain consistency/readability of code.")]
|