Repository navigation
[Java.Interop] Replace legacy CRC64 tables with System.IO.Hashing - #13036
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The bounded replacements preserve compatibility with focused regression coverage; the remaining performance note is non-blocking.
1 open finding
What changed in this PR
Replaces unsafe hashing and UTF-8 operations with bounded managed APIs while preserving legacy hashes and package names.
Changes:
- Reworks CRC64, length XOR, and UTF-8 encoding safely.
- Removes unnecessary unsafe compilation permissions.
- Adds compatibility, offset, incremental, and Unicode tests.
| File | Description |
|---|---|
tests/Microsoft.Android.Build.BaseTasks-Tests/FilesTests.cs |
Tests hash compatibility. |
src/Microsoft.Android.Sdk.TrimmableTypeMap/Scanner/ScannerHashingHelper.cs |
Uses safe span-based UTF-8 encoding. |
src/Microsoft.Android.Sdk.TrimmableTypeMap/Microsoft.Android.Sdk.TrimmableTypeMap.csproj |
Removes unsafe permission. |
src/Microsoft.Android.Sdk.ILLink/Microsoft.Android.Sdk.ILLink.csproj |
Removes unsafe permission. |
src/Microsoft.Android.Build.Tasks/Tests/Microsoft.Android.Build.Tasks.Tests/ScannerHashingHelperTests.cs |
Tests package-name hashes. |
src/Microsoft.Android.Build.BaseTasks/Microsoft.Android.Build.BaseTasks.csproj |
Removes unsafe permission. |
src/Microsoft.Android.Build.BaseTasks/Files.cs |
Safely applies the length XOR. |
src/Microsoft.Android.Build.BaseTasks/Crc64Helper.cs |
Replaces pointer-based CRC processing. |
src/Microsoft.Android.Build.BaseTasks/Crc64.cs |
Removes the unsafe method context. |
external/Java.Interop/tests/Java.Interop.Tools.JavaCallableWrappers-Tests/Java.Interop.Tools.JavaCallableWrappers/Crc64Tests.cs |
Tests CRC output and segmented input. |
external/Java.Interop/src/Java.Interop.Tools.TypeNameMappings/Java.Interop.Tools.TypeNameMappings.csproj |
Removes unsafe permission. |
external/Java.Interop/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/Crc64Helper.cs |
Safely processes legacy CRC input. |
external/Java.Interop/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/Crc64.cs |
Removes the unsafe method context. |
external/Java.Interop/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj |
Removes unsafe permission. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the complete 22-file change at 5517b35, including the removed CRC engines, retained wrapper, migration recipe and dependency/SDK transport. The parameterized Jones/total-length-XOR approach and documented API removals are acceptable; the old table-layout/performance discussion is superseded. One blocking dependency-integration issue remains.
The new runtime dependency can replace the task-compatible hashing DLL with the modern CLI asset in the shared SDK tools directory. The unrestricted System.IO.Hashing reference in JavaCallableWrappers.csproj:34 flows into generator and jcw-gen, which target net10.0 and use UtilityOutputFullPath. Java.Interop.override.props:18-25 points that output at the same SDK tool directory used by the legacy MSBuild tasks. The executable runtime assets are copy-local, so a generator/jcw-gen build can overwrite the compatible System.IO.Hashing.dll; later additional-API generator builds and SDK packaging also use that directory. The SourceLink runtime exclusion does not exclude this application dependency.
This is now observable in current-source build 1627830's Windows Build & Smoke Test: 35 of 38 smoke cases fail. The inspected published build logs show XARLP7000/XACRP7000 with MissingMethodException for NonCryptographicHashAlgorithm.GetCurrentHash(Span<byte>) in Files.HashFile, and Crc64.Hash(ReadOnlySpan<byte>, Span<byte>) in Files.HashBytes/HashString. Positive application, design-time library and expected-validation cases fail during library/resource processing, before the expected downstream diagnostics or runtime execution.
The detailed log records the loaded DLL in the packaged Windows SDK tools directory with MVID 7e1478f4-0536-4ef3-bdde-fa4197bcba1d. Comparing that identifier against all four assets in the exact selected 11.0.0-rc.1.26425.128 package identifies lib/net10.0/System.IO.Hashing.dll, not the task-compatible netstandard2.0 asset. Both have assembly identity 11.0.0.0, but different binaries and framework references. The net10 asset also references System.Runtime, System.Memory and System.Runtime.Intrinsics 10.0.0.0, so it cannot replace the compatible dependency for the remaining Full-framework task host. That additional host consequence is source/package-metadata proof, not a claimed Windows Visual Studio/.NET Framework run.
Keep a coherent task-compatible hashing/dependency asset set in the shared task directory and prevent modern CLI builds from overwriting it, or isolate the CLI dependency outputs while preserving that copy. Do not rely on solution/build order to select the DLL that is eventually packaged. This does not require changing the CRC algorithm or broadening the PR into task-host migration.
The review used immutable source/package metadata and fileless compatibility models, plus actual current-head CI attachments. No reviewer product build, local compiler, device run or CI rerun is claimed.
|
Parking this PR as a draft until .NET 11 ships in November and we bump the repository’s stable/bootstrap SDK from .NET 10 to .NET 11. The System.IO.Hashing migration introduces a dependency-asset/host versioning problem: the command-line tools and netstandard2.0 MSBuild task assemblies share the SDK pack’s tools/ directory, but resolve different target-framework assets of System.IO.Hashing. Overwriting the task-compatible asset caused MissingMethodException failures on Windows. The temporary skip-copy workaround works in local macOS CRC-path checks, but has not been verified by Windows smoke tests. Retargeting generator and jcw-gen to net11.0 also exposes the preparation pipeline’s inherited .NET 10 SDK context, causing NETSDK1045 before those tests can run. Rather than combine unsafe-code cleanup with SDK/host migration and dependency-deployment workarounds, we will revisit the System.IO.Hashing replacement after the stable SDK bump. A separate, simpler PR will retain the legacy CRC64 implementation and address the unsafe-code concerns without changing the hashing engine. |
|
@simonrozsival I haven't submitted a new GitHub review for this context: the PR was converted to draft during the final safety check. I am deferring this revision while it remains draft; no new review was submitted for head |
Remove unnecessary unsafe access to managed memory in the existing tooling without replacing the legacy CRC64 engine or changing its public APIs. Both CRC64 helpers now use bounded `BitConverter.ToUInt64` reads and ordinary flat table indexing. The original 2048 constants and their order are unchanged, as are the CRC-64-Jones polynomial, initial value, length XOR, `HashAlgorithm` wrappers, offsets, and incremental hashing behavior. Input ranges are checked before either state value changes. `Files.XorLength` uses bounded little-endian reads/writes, matching our supported platforms. The typemap scanner uses the existing safe UTF8 span overloads and checked combined byte counts, preserving the `:` separator and the distinct `scrc64`/legacy `crc64` naming policies. Remove `AllowUnsafeBlocks` only from the five tooling projects whose evaluated compile inputs no longer need it; retain the permission in Mono.Android and other JNI/runtime projects. Related to [#11467](#11467), step 2 (tooling portion only). This is an independent main-based PR, not a stack on [#13036](#13036). There are **no package, SDK, TFM, feed, task-hosting, or dependency-graph changes**, no new CRC engine, no public API removals, and no new permanent test fixtures. ### Local validation macOS arm64, worktree-local .NET 10.0.100 for stable tooling, repository-pinned SDK 12.0.100-alpha.1.26480.102 for net11 consumers. No system SDK changes. | Command | Result | | --- | --- | | `bin/bootstrap-dotnet/dotnet build src/Microsoft.Android.Build.BaseTasks/Microsoft.Android.Build.BaseTasks.csproj -v quiet` | Passed; netstandard2.0 | | `bin/bootstrap-dotnet/dotnet build external/Java.Interop/src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj -v minimal` | Passed; netstandard2.0 | | `bin/bootstrap-dotnet/dotnet build external/Java.Interop/src/Java.Interop.Tools.TypeNameMappings/Java.Interop.Tools.TypeNameMappings.csproj -v minimal` | Passed; net10.0 | | `./dotnet-local.sh build src/Microsoft.Android.Sdk.TrimmableTypeMap/Microsoft.Android.Sdk.TrimmableTypeMap.csproj -v minimal` | Passed; net11.0 | | `./dotnet-local.sh build src/Microsoft.Android.Sdk.ILLink/Microsoft.Android.Sdk.ILLink.csproj --no-restore -v quiet` | Passed, 0 errors; also built linked Mono.Android (API 37) and Xamarin.Android.Build.Tasks consumers | | `bin/bootstrap-dotnet/dotnet test tests/Microsoft.Android.Build.BaseTasks-Tests/Microsoft.Android.Build.BaseTasks-Tests.csproj --no-restore -v quiet` | 124 passed, 4 platform-specific skips | | `bin/bootstrap-dotnet/dotnet test external/Java.Interop/tests/Java.Interop.Tools.JavaCallableWrappers-Tests/Java.Interop.Tools.JavaCallableWrappers-Tests.csproj -v minimal --no-restore` | 48 passed, including all four existing CRC tests and naming/importer coverage | | `./dotnet-local.sh build src/Microsoft.Android.Build.Tasks/Tests/Microsoft.Android.Build.Tasks.Tests/Microsoft.Android.Build.Tasks.Tests.csproj -v minimal` | Passed | Existing typemap regression tests: ```sh ./dotnet-local.sh test src/Microsoft.Android.Build.Tasks/Tests/Microsoft.Android.Build.Tasks.Tests/Microsoft.Android.Build.Tasks.Tests.csproj --no-build -v quiet --filter 'FullyQualifiedName~GenerateTrimmableTypeMapTests|FullyQualifiedName~TrimmableTypeMapIncrementalTests|FullyQualifiedName~TrimmableTypeMapManifestAliasTests|FullyQualifiedName~TrimmableTypeMapRidCallbackTests|FullyQualifiedName~ExtractTypeMapKeysFromNativeAotObjectTests' ``` **49 passed, 0 skipped**, after Mono.Android was built. A temporary, untracked comparison harness against original main assemblies passed 628 compatibility/state checks on .NET 10.0.0 and 726 on .NET 11 RC2, covering empty/zero/patterned inputs, offsets, incremental hashing, Initialize, Files byte/file/stream hashes, and empty/Unicode/surrogate/long scanner names. Invalid helper ranges reject without changing CRC or length. Both tables were compared against main for exact constant/order equality. No new tests are committed. Evaluated compile inputs were checked for all five projects (19/29/10/54/27 inputs respectively); each compiles without unsafe permission. Fresh deployed BaseTasks and shared `tools/System.IO.Hashing.dll` match their build outputs byte-for-byte; the latter also exactly matches the unchanged pinned **10.0.12 netstandard2.0** package asset, rather than a modern CLI asset overwriting it. This is a safety cleanup, not a zero-cost/performance claim. Temporary optimized kernel samples on this machine measured approximately +2.6% (64 bytes) and +5.4% (4 KiB) on .NET 10, with different results on .NET 11 RC2. Bounds checks remain; measured ComputeHash allocations were unchanged. These are local samples, not cross-platform guarantees. ### Validation limitations `make prepare` initially failed restoring unpublished `Microsoft.NETCore.App.Ref 10.0.13`. Retrying with SDK 10 selected for both PATH and `DotNetPreviewTool` passed bootstrap provisioning, but the API-docs submodule transfer stalled. JDK discovery was run separately with the actual repository task to allow consumer builds. `make all` compiled the affected consumers, then failed during reference-pack packaging: `CreateFrameworkListFile` could not find `Microsoft.Android/37/Mono.Android.xml`. The local workload was therefore not fully configured. Full SDK packaging, extra API levels 37.1/37.2, and host `ChangePackageNamingPolicy` CoreCLR/NativeAOT build tests remain unvalidated. Windows/Linux and on-device execution were not run. The PR is opened now at the user's explicit request with these gaps disclosed.
|
In response to @simonrozsival's request: I am deferring this review because the PR is a draft; I will review it after it is marked ready for review. |
|
@simonrozsival Not reviewing this request in this iteration: The PR is still a draft. I will review it once it is marked ready; this head has not been marked reviewed. |
75de1e3 to
c5eff39
Compare
Preserve native-endian length XOR and legacy CRC-64-Jones output using bounded reads and managed table indexing. Encode scanner namespace/assembly keys with safe UTF-8 spans and checked byte counts. Remove unused unsafe permission from five tooling consumers and add exact-output, offset, incremental, and range regressions covering both CRC copies. Co-authored-by: Copilot App <[email protected]>
Document why System.IO.Hashing.Crc64 cannot replace the legacy CRC-64-Jones implementation, keeping the explanation in both copies. Co-authored-by: Copilot App <[email protected]>
Retain six representative public/output regressions for file hashes, legacy CRC64 offset and incremental input, and scanner naming bytes. Remove private HashCore state probes, duplicated reference algorithms, exhaustive vectors, allocation-threshold cases, and linked-test aliases/project wiring. Preserve all baseline tests and production changes. Co-authored-by: Copilot App <[email protected]>
Restore SystemIOHashingPackageVersion as an alias of MicrosoftNETCoreAppRefPackageVersion instead of maintaining an independent literal version. The resolved hashing package now comes from the same dotnet/dotnet build and revision as the runtime. The alias was originally introduced by #7855. #10043 replaced it with a stable pin to work around Visual Studio 17.14 Preview's System.Memory binding mismatch. Current 10.0.12 and the matching runtime hashing package both depend on System.Memory 4.6.3 and System.Buffers 4.6.1, so alignment does not introduce the historical dependency-version change. Retain SourceLink runtime exclusions and .NET/netstandard asset staging safeguards. Validated the full local SDK, file/scanner hash outputs and CoreCLR/NativeAOT naming builds. Verified staged hashing libraries have the expected runtime package informational version and source revision. Windows .NET Framework MSBuild loading remains untested on this macOS host. Co-authored-by: Copilot App <[email protected]>
Register System.IO.Hashing as a product dependency from dotnet/dotnet at the same build and revision as the runtime. Generated the version property with darc add-dependency rather than keeping a manually derived alias in Versions.props. Maestro can now update this dependency along with other VMR products. Co-authored-by: Copilot App <[email protected]>
Delete both bespoke CRC64 helpers and lookup tables. Use one shared internal Crc64JonesCompat adapter backed by System.IO.Hashing custom Jones parameters, retaining the initial state, length XOR, incremental/reset behavior and supported little-endian output. Route internal naming/scanner callers directly to the adapter. Keep both public Crc64 HashAlgorithm types as obsolete forwarding wrappers for compatibility. Link the adapter into existing consumers and add the hashing package where newly required. Compatibility tests intentionally continue exercising the obsolete wrappers without adding new test matrices. The SDK, netstandard2.0/net10.0/net11.0 consumers, hash/naming suites, 526 generator tests, and CoreCLR/NativeAOT naming and CoreCLR debug/release export builds passed locally. Removed the task-host routing experiment; blanket host migration is not included. Co-authored-by: Copilot App <[email protected]>
Keep Crc64JonesCompat in its canonical internal namespace across linked-source consumers. Import that namespace in the BaseTasks public forwarding wrapper instead of conditionally changing the adapter's namespace. Public type names and hash behavior remain unchanged. Co-authored-by: Copilot App <[email protected]>
Use Crc64JonesCompat.Compute directly for existing normalized file comparisons and remove the obsolete warning suppression. Link the shared internal adapter into the generator test assembly rather than exposing it publicly or changing assembly-signing/friend contracts. Co-authored-by: Copilot App <[email protected]>
Select 11.0.0-rc.1.26425.128, the latest System.IO.Hashing available on the existing dotnet-public feed. Update dependency metadata with the package's published source revision via darc add-dependency, retaining Maestro ownership without a runtime-property alias. Remove the extra Java.Interop NuGet source; NuGet.Config and the override props are now unchanged from the PR base. Verified a fresh no-cache download from dotnet-public, exact hash regressions, the complete local SDK build, and CoreCLR/NativeAOT package naming builds. Co-authored-by: Copilot App <[email protected]>
Keep the existing Crc64Helper class and canonical source path instead of adding a separately named compatibility adapter. Rename its entry points to ComputeJones, HashCoreJones and HashToUInt64Jones, update bound callers and linked sources, and retain the original license/namespace formatting. The library-backed Jones parameters, length XOR, incremental behavior, obsolete public wrappers and removed lookup tables are unchanged. Focused hashes, generator526, naming consumer builds, full SDK, and CoreCLR/NativeAOT package naming pass locally. Co-authored-by: Copilot App <[email protected]>
Remove the two new zero-filled and offset/incremental CRC test cases at the user's request. Preserve all four original CRC tests and the warning suppression required to exercise the obsolete public wrapper. Co-authored-by: Copilot App <[email protected]>
Delete the BaseTasks Crc64 class as requested; this assembly does not require API compatibility for that unused type. Remove its now-unneeded shared helper compile include and the test assertion that instantiated it. File hashing continues using System.IO.Hashing directly, and the owning Java.Interop/Mono.Android public compatibility wrapper remains. Validated the BaseTasks build, full BaseTasks test suite (126 passed, four existing platform skips), and complete local SDK build. Co-authored-by: Copilot App <[email protected]>
Delete ScannerHashingHelperTests at the user's request. Preserve the existing typemap test fixtures; all 26 selected typemap cases pass after removal. Co-authored-by: Copilot App <[email protected]>
Remove the two added Files hash tests and their assertion helper at the user's request. FilesTests.cs now matches the PR base exactly. Existing BaseTasks coverage passes: 124 tests with four existing platform skips. Co-authored-by: Copilot App <[email protected]>
Document the removed tooling APIs and the surviving obsolete wrapper. Clarify that callers can use default ECMA-182 when historical checksums need not be retained. Exact Jones compatibility additionally requires the total-length XOR and little-endian result bytes. Update the obsolete message so it does not imply every caller must keep Jones hashing. Verify the published recipe against the original engine and compile it for netstandard2.0; verify default ECMA-182 separately. Co-authored-by: Copilot App <[email protected]>
Keep the API changes and default ECMA-182 recommendation concise. Retain the exact Jones parameters, final length XOR and byte order without a full compatibility-adapter sample. Co-authored-by: Copilot App <[email protected]>
Keep the release note focused on public migration APIs. Co-authored-by: Copilot App <[email protected]>
jcw-gen and generator now reach System.IO.Hashing through JCW and copied their .NET flavor over the netstandard2.0 copy that the task assemblies need in the shared tools directory, causing MissingMethodException on .NET Framework MSBuild. Skip that copy in the .NET for Android build; the tools resolve the netstandard2.0 assembly from the same directory. Co-authored-by: Copilot App <[email protected]>
Return generator and its test project to DotNetTargetFramework, currently net10.0. Remove the CRC64 release note and its documentation index link as requested. Co-authored-by: Copilot App <[email protected]>
c5eff39 to
da0d49c
Compare
Reference System.IO.Hashing when compiling the linked Jones adapter, stage the selected runtime assembly for every API level, and include it in managed runtime packs so consumer apps can resolve the dependency. Keep the package private to the product build and avoid requiring consumers to add a PackageReference. Co-authored-by: Copilot App <[email protected]>
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the complete 18-file CRC64 migration and its material naming, generator/task dependency-copy, Full/Core host, Mono.Android, and local/shipping runtime-pack paths, with a separate final independent-blocker pass. The previous shared-tools hashing-DLL overwrite blocker is fixed at source/integration level: generator excludes its modern asset, netstandard task producers retain the compatible shared asset, and modern tasks remain isolated under tools/net. The explicit Mono.Android reference and both runtime-pack inclusion paths address the linked helper dependency. Legacy Jones parameters, incremental/reset behavior, total-length XOR and checksum/package-name contracts are preserved by the inspected source. No high-confidence blocking issue remains.
The later target-only Gradle diagnostic change was checked separately and does not alter those conclusions. This is a static review, not independent package-binary/output-parity or Windows/.NET Framework execution certification; no builds, tests, generators or devices were run, and pending CI is not represented as completed.
Update the package pin and tracked dependency to 11.0.0-rc.3.26522.148, using the source commit recorded in the published package metadata. Co-authored-by: Copilot App <[email protected]>
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the complete 18-file CRC64 migration at e318e8e, its naming consumers, generator/task dependency-copy paths, Full/Core host boundaries, Mono.Android reference and local/shipping runtime-pack inclusion, followed by a separate final independent-blocker pass. The RC3 dependency update preserves the inspected upstream hashing implementation identities and the shared task-compatible versus modern-tools asset separation. The previous DLL-overwrite and linked-helper dependency issues remain fixed at source/integration level; the accepted Jones, reset/incremental, total-length-XOR and checksum/package-name contracts are preserved. No high-confidence blocking issue remains.
The later target-only JDK-installation change was checked separately and does not alter this review. This is a static source/integration review, not package-binary/output-parity or Windows/.NET Framework execution certification; no builds, tests, generators or devices were run, and pending CI is not represented as completed.

Context: #11467, #13041
Changes: System.IO.Hashing RC1 → RC3 source comparison
#13041 removed unsafe managed-buffer access without changing the hashing engine. This follow-up removes the two copies of the custom CRC64 implementation and their lookup tables in favor of
System.IO.Hashing.The default library CRC64 is not a replacement for Android's legacy algorithm: changing it would rename Java packages and invalidate existing checksums. Use the custom-polynomial APIs in
System.IO.Hashing11.0.0-rc.3.26522.148 to retain CRC-64-Jones, theulong.MaxValueinitial state, reflected processing, final total-length XOR and existing output bytes. Keep incremental hashing and reset behavior unchanged. Record the package version and its published source SHA ineng/Versions.propsandeng/Version.Details.xml.The public Java.Interop/Mono.Android
Crc64 : HashAlgorithmremains as an obsolete forwarding wrapper. Remove the unused public BaseTasksCrc64type. Generated Java names and checksum values do not change; the obsolete warning and BaseTasks API removal are intentional compatibility changes.Dependency loading
The first migration exposed two different failures:
tools/, but NuGet selects different framework assets of the hashing package. A tool overwrote the task-compatible DLL, causing WindowsMissingMethodExceptionfailures. Keep the netstandard asset there by excluding generator's hashing DLL from the copy list, without excluding the dependency from its.deps.json.Mono.Androidlinks the CRC helper's source; it does not inherit the owning project's package references. This producedCS0234/CS0246during product compilation. Add its explicit hashing reference and ship the selected DLL in every managed runtime pack, including local staging andRuntimeList.xml. Consumer apps need no additional package reference.Keep the shared framework settings and supported task-host registrations unchanged. JNI boundary changes and the broader memory-safety audit remain outside this PR.
Validation
macOS arm64; repository-pinned SDK
12.0.100-alpha.1.26523.103. The following passed after the RC3 update:PATH="$PWD/bin/Debug/dotnet:$PATH" make leeroy CONFIGURATION=Debug./dotnet-local.sh vstest bin/TestDebug/Microsoft.Android.Build.BaseTasks-Tests.dll bin/TestDebug/net11.0/Java.Interop.Tools.JavaCallableWrappers-Tests.dll bin/TestDebug/net11.0/generator-Tests.dll./dotnet-local.sh test bin/TestDebug/net12.0/Microsoft.Android.Build.Tasks.Tests.dll --filter 'FullyQualifiedName~GenerateTrimmableTypeMapTests|FullyQualifiedName~TrimmableTypeMapGeneratorTests|FullyQualifiedName~ScannerHashingHelperTests'git diff --checkTemporary, uncommitted apps without a hashing package reference also passed on an arm64 emulator under CoreCLR Debug and optimized NativeAOT Release. Both returned the legacy
hellochecksumad3d04bd697eb3c5, including incremental hashing after reset. Verified the actual runtime package contents and that all three local API packs contain the RC3 DLL; the shared tooling folder retains the RC3 netstandard asset.Before the RC3 update,
DOTNET_CLI_RUN_MSBUILD_OUTOFPROC=true ./dotnet-local.sh test bin/TestDebug/net11.0/Xamarin.Android.Build.Tests.dll --filter 'Name~BuildBasicApplication|Name~ChangePackageNamingPolicy|Name~ExplicitPackageNamingPolicy'produced 24 passes and one PDB-placement assertion failure:BuildBasicApplicationCheckPdbRepeatBuild(CoreCLR)expects an x86_64 PDB while the build emits arm64. Both CoreCLR/NativeAOT exact legacy-name checks passed. The PDB/ABI issue is not changed here.Local app validation required a fresh MSBuild process/out-of-process CLI mode and isolation of a stale generated manifest in this worktree's preview SDK; no tracked SDK workaround is included. Windows Visual Studio/.NET Framework task loading was not exercised locally.