Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Assembly.GetCallingAssembly() directly in .NET Standard 2.0+ #2049

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

cwensley
Copy link
Member

@cwensley cwensley commented Nov 1, 2021

Fixes issues getting the correct calling assembly on .NET 5+ in some cases.

Also added NoInlining so that the caller assembly is always correct, in case the runtime decides to inline the FromResource method.

Fixes issues getting the correct calling assembly on .NET 5+ in some cases.
@cwensley cwensley merged commit d4ad887 into picoe:develop Nov 1, 2021
@cwensley cwensley deleted the curtis/getcallingassembly-fixes branch November 1, 2021 23:04
zii-dmg added a commit to zii-dmg/GtkSharp that referenced this pull request Jan 27, 2022
Added no inlining attribute for methods with Assembly.GetCallingAssembly() so caller assembly is correct if jit want to inline.
See picoe/Eto#2049.
harry-cpp pushed a commit to GtkSharp/GtkSharp that referenced this pull request Jan 27, 2022
Added no inlining attribute for methods with Assembly.GetCallingAssembly() so caller assembly is correct if jit want to inline.
See picoe/Eto#2049.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant