-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[browser] Fix System.Delegate.DynamicInvoke method can not be resolved #47519
Merged
marek-safar
merged 23 commits into
dotnet:master
from
kjpou1:wasm-fix-delegate-trimming
Feb 10, 2021
Merged
[browser] Fix System.Delegate.DynamicInvoke method can not be resolved #47519
marek-safar
merged 23 commits into
dotnet:master
from
kjpou1:wasm-fix-delegate-trimming
Feb 10, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- When building an app using <PublishTrimmed>true</PublishTrimmed> the linker is linking out System.Delegate.DynamicInvoke - Add this to the linker trim exclusions.
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. |
Tagging subscribers to 'arch-wasm': @lewing Issue Details
|
marek-safar
reviewed
Jan 27, 2021
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLinkTrim.xml
Outdated
Show resolved
Hide resolved
marek-safar
reviewed
Jan 27, 2021
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLinkTrim.xml
Outdated
Show resolved
Hide resolved
``` 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) ```
eerhardt
reviewed
Jan 27, 2021
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLinkTrim.xml
Outdated
Show resolved
Hide resolved
…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. ```
This was referenced Feb 1, 2021
radical
reviewed
Feb 1, 2021
radical
reviewed
Feb 1, 2021
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
....InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
Outdated
Show resolved
Hide resolved
…fix-delegate-trimming
…fix-delegate-trimming # Conflicts: # src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Runtime.cs
marek-safar
approved these changes
Feb 10, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
<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