Skip to content

Managed ilasm: document and test deliberate behavior differences - #136400

Merged
jkoritzinsky merged 2 commits into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/feature-ilasm-deliberate-differences
Oct 27, 2026
Merged

jkoritzinsky merged 2 commits into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/feature-ilasm-deliberate-differences

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

Summary

Documents and tests the deliberate existing managed-ilasm behavior from items 7, 10, 11 and 15 of #135314:

  • Preserve syntax-error recovery and following methods with -ERR, without promising that every malformed instruction is omitted or that arbitrary malformed input produces runnable IL.
  • Reject unsupported path escapes instead of silently stripping backslashes.
  • Accept both braced and unbraced .language GUIDs.
  • Preserve include lookup as written, then relative to the first input directory, then through -INCLUDE; nested includes do not become relative to the including file.

No product behavior is changed. This branch is independently based on main.

Validation already run

$env:DOTNET_ROLL_FORWARD='LatestMajor'
$env:DOTNET_HOST_PATH='E:\copilot-worktrees\runtime\dev-jkoritzinsky-glowing-meme\artifacts\bin\testhost\net11.0-windows-Debug-x64\dotnet.exe'
.\.dotnet\dotnet.exe test src\tools\ilasm\tests\ILAssembler.Tests --filter 'FullyQualifiedName~CommandLinePdbDocumentTests|FullyQualifiedName~DocumentCompilerTests|FullyQualifiedName~SourceDirectiveTests' -- "RunConfiguration.DotNetHostPath=$env:DOTNET_HOST_PATH"

Result: branch rebuilt; 65 passed, 0 failed/skipped. The common corrected-reader testhost was reused, not added to this branch. No new test runs were performed for PR publication.

Note

This pull request description and tests were prepared with GitHub Copilot assistance.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 5 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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
See info in area-owners.md if you want to be subscribed.

Comment thread src/tools/ilasm/MANAGED-ILASM-FIXES.md Resolved
Comment thread src/tools/ilasm/MANAGED-ILASM-FIXES.md Resolved
Comment thread src/tools/ilasm/MANAGED-ILASM-FIXES.md Resolved
Comment thread src/tools/ilasm/MANAGED-ILASM-FIXES.md Resolved
@jkoritzinsky

Copy link
Copy Markdown
Member Author

/ba-g timed out with permissions failures when uploading the results to AzDO after queuing for 4+ hours, actual test passed well within time budget

@jkoritzinsky
jkoritzinsky merged commit 2da45ff into dotnet:main Oct 27, 2026
62 of 64 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 27, 2026
@jkoritzinsky
jkoritzinsky deleted the dev/jkoritzinsky/feature-ilasm-deliberate-differences branch October 27, 2026 17:24
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants