Skip to content

Fixed calls to SocketManager.Interface beeing skipped when compiling with PublishAOT, Native AOT#818

Draft
snorkel456 wants to merge 3 commits intoFacepunch:masterfrom
snorkeldev:master
Draft

Fixed calls to SocketManager.Interface beeing skipped when compiling with PublishAOT, Native AOT#818
snorkel456 wants to merge 3 commits intoFacepunch:masterfrom
snorkeldev:master

Conversation

@snorkel456
Copy link
Copy Markdown

Problem:
With PublishAOT the functions from the interface you implement just don't get called.

Solution:
I fixed the code that was causing warnings with AOT and now it works.

Note:

  • this requires at least .NET framework 4.5.1
  • CallbackToString is still using reflection "var strct = data.ToType( t );" but is only used for Dispatch.OnDebugCallback

Todo:

  • The project settings need to be updated with the correct TargetFrameworks

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.

1 participant