Uh oh!
There was an error while loading. Please reload this page.
[browser] Fix System.Delegate.DynamicInvoke method can not be resolved - #47519
Conversation
- When building an app using <PublishTrimmed>true</PublishTrimmed> the linker is linking out System.Delegate.DynamicInvoke - Add this to the linker trim exclusions.
ghost
commented
Jan 27, 2021
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
ghost
commented
Jan 27, 2021
Tagging subscribers to 'arch-wasm': @lewing Issue Details
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
``` resource System.Private.Runtime.InteropServices.JavaScript.xml in System.Private.Runtime.InteropServices.JavaScript, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a : warning IL2007: Could not resolve assembly 'System.Private.CoreLib' [/src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/System.Private.Runtime.InteropServices.JavaScript.csproj] 1 Warning(s) 0 Error(s) ```
Uh oh!
There was an error while loading. Please reload this page.
…fix-delegate-trimming
- Explicitly provide the declaring type to GetMethodFromHandle in GetCallSignature - Fixes error resolving generic method handles. ``` Error: System.ArgumentException: Cannot resolve method Int32 Invoke(Int32, Int32) because the declaring type of the method handle System.Func`3[T1,T2,TResult] is generic. Explicitly provide the declaring type to GetMethodFromHandle. ```
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…fix-delegate-trimming
kjpou1
commented
Feb 4, 2021
…fix-delegate-trimming # Conflicts: # src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Runtime.cs
<PublishTrimmed>true</PublishTrimmed>the linker is linking out System.Delegate.DynamicInvokeRemove dependency on System.Delegate.DynamicInvoke
Add method to retrieve the Invoke method of the delegate
Added delegate tests.
Fix#47516