File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/libraries/System.Private.CoreLib/src/ILLink Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 6
6
https://github.com/mono/linker/pull/649 -->
7
7
<method name =" .ctor" />
8
8
</type >
9
+ </assembly >
9
10
10
- <!-- Native hosting accesses managed methods in the ComponentActivator class.
11
- These are always rooted to ensure native calls get trimmer related errors
12
- but will be trimmed away by the related feature switch -->
11
+ <assembly fullname =" System.Private.CoreLib" feature =" System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting" featurevalue =" true" >
12
+ <!-- Native hosting accesses managed methods from
13
+ https://github.com/dotnet/runtime/blob/bbc898f3e5678135b242faeb6eefd8b24bf04f3c/src/native/corehost/hostpolicy/hostpolicy.cpp#L527-L538
14
+ but ComponentActivator is not trimming safe. We persist the methods only when `_EnableConsumingManagedCodeFromNativeHosting` setting
15
+ is enabled and only then we show the trimming warnings about possibly missing dependencies.
16
+ -->
13
17
<type fullname =" Internal.Runtime.InteropServices.ComponentActivator" >
14
18
<method name =" LoadAssemblyAndGetFunctionPointer" />
15
19
<method name =" GetFunctionPointer" />
You can’t perform that action at this time.
0 commit comments