Typeload Exception while using my c# dll in Unity,Getting TypeLoadException error while using my c# dll in Unity
TypeLoadException : Could not resolve type with token xx (from typeref, class/assembly System.IO.Stream, System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=xx)
I am new with c# and Unity
I have created dll using Visual Studio using .Net Core 3.1
Using the dll in Unity (using .Net 4.x)
I can run normal code successfully. But, While using GetResponseStream() in code of dll, I get this error in Unity. Even code used for parsing json with newtonsoft gives this kind of TypeLoadException exception
Are the versions used in my library project and Unity project compatible? How can I successfully use Stream reading code or in my c# project?
I am just copying dll in Unity project, do I need to copy something else too?,TypeLoadException : Could not resolve type with token xx (from typeref, class/assembly System.IO.Stream, System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=xx)
I am new with c# and Unity
I have created dll using Visual Studio using .Net Core 3.1
Using the dll in Unity (using .Net 4.x)
I can run normal code successfully. But, While using GetResponseStream() in code of dll, I get this error in Unity.
Are the versions used in my library project and Unity project compatible? How can I successfully use Stream reading code or in my c# project?
I am just copying dll in Unity project, do I need to copy something else too?
Your answer
