Skip to content
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

Are you missing an assembly reference? Error appears after import socket.io-unity.unitypackage v1.0.1 #16

Open
biopowder opened this issue Jun 4, 2021 · 4 comments

Comments

@biopowder
Copy link

Hi,

I have 14 errors after I imported package from https://github.com/Rocher0724/socket.io-unity/releases v1.0.1

Those are 2 files where errors appears: DynamicReflectionDelegateFactory and ILGeneratorExtensions.

Assets/Plugins/Socket/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs(8,38): error CS0234: The type or namespace name 'Label' does not exist in the namespace 'System.Reflection.Emit' (are you missing an assembly reference?)

Assets/Plugins/Socket/Newtonsoft.Json/Utilities/ILGeneratorExtensions.cs(7,42): error CS0246: The type or namespace name 'ILGenerator' could not be found (are you missing a using directive or an assembly reference?)

Unity version: 2019.4.11f

@delmaass
Copy link

delmaass commented Jun 6, 2021

Hi biopowder,

I also experimented this issue.
To solve those errors, I had to go into : Edit > Project Settings >Player > API Compatibility Level"
Then I changed it to .NET 4.x.
I also had to install "Unity Reflector" from the Package Manager because other errors came after.

Hope this helps !

@biopowder
Copy link
Author

Thanks, didn't know about this option :) I don't have errors now, but its not working for me, I see only "Start" message. Will try to figure out, whats wrong. Thx one more time 🥇

@biopowder
Copy link
Author

its not working with Socket IO 4.0.0, only with 2 and less...

@delmaass
Copy link

delmaass commented Jun 7, 2021

Yes, you have to downgrade Socket.io to 2.4.0 (last stable 2.x version)

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

No branches or pull requests

2 participants