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

Import DLL issue in Unity 2018.1.17 #40

Open
dpnthanh opened this issue Dec 6, 2018 · 8 comments
Open

Import DLL issue in Unity 2018.1.17 #40

dpnthanh opened this issue Dec 6, 2018 · 8 comments

Comments

@dpnthanh
Copy link

dpnthanh commented Dec 6, 2018

I'm try to import dll file to Plugins folder, affter that unity show 31 error like this
error CS0433: The imported type `System.Func<T1,T2,TResult>' is defined multiple times

@LagacheLouis
Copy link

@dpnthanh Unity 2018 package manager ui is the source of this issue ,you can remove it's dependancy in your project in "yourproject"/Packages/manifest.json. It will resolve the conflict but package will be no more accessible.

@bcjordan
Copy link

Does that mean there's no way to use this with 2018 now?

@bcjordan
Copy link

bcjordan commented Jan 19, 2019

If anyone's doing the same thing, ^ see that commit's editing of the Unity Packages/manifest.json. It doesn't remove package manager ability, just the UI.

@offchan42
Copy link

offchan42 commented Aug 29, 2019

I can confirm this issue is still happening in Unity 2019.2.2f1
image

E:\Unity\2019.2.2f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Layout\LayoutUtility.cs(148,74): error CS0433: The type 'Func<T, TResult>' exists in both 'WebSocket4Net, Version=0.14.1.0, Culture=neutral, PublicKeyToken=eb4e154b696bf72a' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
What is a smart solution for this problem? I want to use socket.io in Unity. Is there an alternative repo or method?
@floatinghotpot Can you help fix the issue?
It's also the same issue as #37, #33, #35, #1
If you fix this one, many issues will be closed. Thank you.
If the issues seem to be too difficult to fix please also suggest an alternative for communicating unity with other languages (high-level way).

@offchan42
Copy link

I am now using BestHTTP package on the Unity asset store as a solution. It has socket.io implementation.

@AlekOstolle
Copy link

I have the same problem.
" error CS0433: The type 'Func<T, TResult>' exists in both 'WebSocket4Net, Version=0.14.1.0, Culture=neutral, PublicKeyToken=eb4e154b696bf72a' and 'netstandard, Version=2.0.0.0 "
May someone have a solution ?

@schematical
Copy link

+1 same error /home/user1a/Unity-2019.1.0f2/Editor/2019.2.10f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Layout/LayoutUtility.cs(148,74): error CS0433: The type 'Func<T, TResult>' exists in both 'WebSocket4Net, Version=0.14.1.0, Culture=neutral, PublicKeyToken=eb4e154b696bf72a' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

@Rocher0724
Copy link

Rocher0724 commented Nov 4, 2019

Hi there.

i am changed this library dll file to c-sharp code for use with Unity 2019.1.12f, .NET 4.x.

The reason I changed the DLL file to C-Sharp code was because I wanted to use the Func and Action functions.

try it

https://github.com/rocher0724/socket.io-unity

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

7 participants