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

error CS0012: The type 'ReadOnlyMemory<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. #69

Open
sunlighing opened this issue Sep 27, 2023 · 5 comments

Comments

@sunlighing
Copy link

when i import this package ,but have follows error

@sunlighing
Copy link
Author

image

@sunlighing
Copy link
Author

unity version 2020.3.39 ,socketio 1.14

@strobert22
Copy link

Hi @sunlighing

im using unity 2020.3.46f1
same problem here.

(disclaimer: i dont know what im doing)
im try adding "System.Memory.dll" on file itisnajim.SocketIOUnity.asmdef

like this
{ "name": "SocketIOUnityAssembly", "rootNamespace": "", "references": [], "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false, "overrideReferences": true, "precompiledReferences": [ "Microsoft.Bcl.AsyncInterfaces.dll", "Newtonsoft.Json.dll", "System.Reactive.dll", "System.Memory.dll", "System.Runtime.CompilerServices.Unsafe.dll", "System.Text.Json.dll", "System.Text.Encodings.Web.dll" ], "autoReferenced": true, "defineConstraints": [], "versionDefines": [], "noEngineReferences": false }
then
Go to Project View, right-click on foldier Packages/Unity SockerIO and press "reimport"

now I don't have any errors and everything seems to compile fine but when I try to use the SocketUIClient I get it that the namespace dont exist.

im keep trying.

@TiagoAndreAlmeida
Copy link

Any update on this ?

@LabGuy94
Copy link

Having the same issue on 2019.4.39f

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

4 participants