Repository navigation
Fix managed ILAsm trailing-dot namespace encoding - #137093
Merged
jkoritzinsky merged 4 commits intoNov 10, 2026
Merged
jkoritzinsky merged 4 commits into
jkoritzinsky merged 4 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib |
jkotas
reviewed
Nov 6, 2026
Compose namespace and class names before applying native-compatible splitting, and correct the leading double-dot corner case. Cover runtime identifiers, Roslyn namespace cases, references, exported types, nested types, and normalized declaration merging. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
jkotas
reviewed
Nov 9, 2026
Co-authored-by: Copilot App <[email protected]>
jkotas
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve native ILAsm's namespace/name encoding for classes declared inside namespaces ending in dots. Managed ILAsm currently emits the entire namespace unchanged; native ILAsm places the final dot at the start of an otherwise unqualified type name. This introduces an extra namespace in the metadata consumed by the C# compiler's EmptyNamespaceNames test.
The fix adjusts type-definition name materialization only, preserving explicitly leading-dot type names. Six compiler public-API regression cases check exact emitted namespace/name pairs, including
.,..,..N,N.M., andN.M...Validation on Windows:
eng\common\dotnet.cmd test src\tools\ilasm\tests\ILAssembler.Tests\ILAssembler.Tests.csproj --filter FullyQualifiedName~Namespace_TrailingDotsArePreservedInTypeNamebefore the fix: 4 failed, 1 passed, demonstrating the regression.eng\common\dotnet.cmd test src\tools\ilasm\tests\ILAssembler.Tests\ILAssembler.Tests.csproj --no-restoreafter the final fix: 5,792 passed, 3 skipped, 0 failed; rebuilt the assembler and tests.git diff --check HEAD~1 HEAD: passed.The Roslyn suite was not run. A broader
build.cmd tools+tools.ilasminvocation was stopped when it began compiling CoreCLR; validation above uses the focused ILAssembler project and its complete unit-test suite.Note
This pull request description and changes were generated with GitHub Copilot.