Skip to content

Add hint for trimming System.Runtime in test109242 - #125948

Merged
MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-1
Mar 23, 2026
Merged

MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-1

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Started failing in outerloops.

System.IO.FileNotFoundException: Cannot load assembly 'System.Runtime'. No metadata found for this assembly.
   at System.Reflection.Assembly.Load(String)
   at Test109242.TestEntryPoint()
   at Program.<<Main>$>g__TestExecutor6|0_7(StreamWriter, StreamWriter, Program.<>c__DisplayClass0_0&)

Started failing in outerloops.

```
System.IO.FileNotFoundException: Cannot load assembly 'System.Runtime'. No metadata found for this assembly.
   at System.Reflection.Assembly.Load(String)
   at Test109242.TestEntryPoint()
   at Program.<<Main>$>g__TestExecutor6|0_7(StreamWriter, StreamWriter, Program.<>c__DisplayClass0_0&)
```
Copilot AI review requested due to automatic review settings March 23, 2026 08:10
@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/azp run runtime-nativeaot-outerloop

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an outerloop trimming failure in test109242 by ensuring System.Runtime is preserved so the test’s explicit Assembly.Load("System.Runtime") continues to succeed under trimming.

Changes:

  • Add a trimming “root” hint via Type.GetType("System.Object, System.Runtime") to keep System.Runtime available at runtime.

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g the windows build breaks were fixed in #125946

@MichalStrehovsky
MichalStrehovsky merged commit fbf31b6 into main Mar 23, 2026
103 of 113 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch March 23, 2026 21:26
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants