Uh oh!
There was an error while loading. Please reload this page.
Use System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting - #62903
Conversation
ghost
commented
Dec 16, 2021
Tagging subscribers to this area: @hoyosjs Issue Detailsnull
|
jkotas
commented
Dec 17, 2021
This was added in #59962 |
lambdageek
commented
Dec 20, 2021
@marek-safar Mono uses these too, to implement the There's a feature switch |
…o coreclr" This reverts commit 16a3ae1.
…veHosting feature switch to keep native hosting ComponentActivator dependencies
marek-safar
commented
Dec 22, 2021
Updated PR to address the issue differently |
jkotas
commented
Dec 22, 2021
Naming nits: We have existing Would it make sense to call this one |
I agree with this name. |
marek-safar
commented
Dec 22, 2021
I'd prefer to do the msbuild property rename in the follow-up PR as the definition primary lives in sdk and would make sense to change it there first. |
jkotas
commented
Dec 22, 2021
I have not realized that this name is in the SDK already. Fixing it up in follow up PR sounds good. |
feature switch to keep native hosting ComponentActivator dependencies to bring back no trimming warnings for System.Private.Corelib.
System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHostingis by default disabled (false) when apps are trimmed. Users will need to pass_EnableConsumingManagedCodeFromNativeHostingto re-enable native hosting withComponentActivatorI think that's fine becauseComponentActivatoris marked as never trimming safe, effectively making trimming + native hosting risky configuration.