[Bug] When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error #84
Replies: 5 comments
-
Hey @mixmob-julio , the NativeWebsocket lib is the cross platform wrapper, you should try to remove instead |
Beta Was this translation helpful? Give feedback.
-
The duplicity happens with the NativeWebSocket.dll file which can be present/distributed in other packages/plugins like Photon. That's why I need to remove it. Should not the Solana SDK now be able to get the other dll reference and use it? |
Beta Was this translation helpful? Give feedback.
-
From your issue seems that No unfortunately, dependency management is not straight forward in Unity. |
Beta Was this translation helpful? Give feedback.
-
Hey @mixmob-julio , did deleting |
Beta Was this translation helpful? Give feedback.
-
Related issue: #148 |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error being triggered:
Assets\SolanaSDK\Runtime\codebase\SolanaMobileWalletAdapter.cs(92,28): error CS0121: The call is ambiguous between the following methods or properties: 'WebSocketSharp.Ext.IsNullOrEmpty(string)' and 'WebSocketSharp.Ext.IsNullOrEmpty(string)'
Happens that Photon has the same library being distributed with.
If I try to remove the duplicate dll from Solana folder...
... the Solana Unity SDK don't work, and shows follow error:
Assets\SolanaSDK\Runtime\codebase\SolanaMobileStack\MobileWalletAdapterWebSocket.cs(2,7): error CS0246: The type or namespace name 'NativeWebSocket' could not be found (are you missing a using directive or an assembly reference?)
To Reproduce
Expected behavior
I expect to remove the NativeWebSocket lib distributed with Solana SDK and use any generic NativeWebSocket lib already present in the project.
Screenshots
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions