Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

The used approach only worked in debug builds. InlineableStringResource is not one of the nodes that survives from scanning phase to compilation phase. We only look at the custom attributes in the scanning phase.

Make the compiler think GetResourceString was reflected on instead. ReflectedMethod nodes do survive from reflection analysis to compilation.

Cc @dotnet/ilc-contrib

The used approach only worked in debug builds. `InlineableStringResource` is not one of the nodes that survives from scanning phase to compilation phase. Make the compiler think `GetResourceString` was reflected on instead.
@ghost
Copy link

ghost commented Feb 2, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

The used approach only worked in debug builds. InlineableStringResource is not one of the nodes that survives from scanning phase to compilation phase. We only look at the custom attributes in the scanning phase.

Make the compiler think GetResourceString was reflected on instead. ReflectedMethod nodes do survive from reflection analysis to compilation.

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: MichalStrehovsky
Labels:

area-NativeAOT-coreclr

Milestone: -

@MichalStrehovsky
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky MichalStrehovsky merged commit 3efe6f4 into dotnet:main Feb 6, 2023
@MichalStrehovsky MichalStrehovsky deleted the oops branch February 6, 2023 23:54
@ghost ghost locked as resolved and limited conversation to collaborators Mar 9, 2023
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.

2 participants